/// <summary> /// Creates a new <c>NewLineContextMenu</c>, wiring each menuitem to the specified UI. /// </summary> /// <param name="ui">The user interface displaying this context menu</param> internal NewLineContextMenu(NewLineUI ui) { InitializeComponent(); new UserAction(ctxSpecifyId, ui.SpecifyId); new UserAction(ctxCancel, ui.Cancel); }
private void LineAddStraightLine(IUserAction action) { CommandUI cmd = new NewLineUI(this, action, SelectedPoint); m_Controller.StartCommand(cmd); }