/// <summary>
        /// Creates a new <c>NewCircularArcContextMenu</c>, wiring each menuitem to the specified UI.
        /// </summary>
        /// <param name="ui">The user interface displaying this context menu</param>
        internal NewCircularArcContextMenu(NewCircularArcUI ui)
        {
            InitializeComponent();

            new UserAction(ctxSpecifyId, ui.SpecifyId);
            new UserAction(ctxShortArc, ui.ShortArc);
            new UserAction(ctxLongArc, ui.LongArc);
            new UserAction(ctxCancel, ui.Cancel);
        }
Ejemplo n.º 2
0
 private void LineAddCircularArc(IUserAction action)
 {
     CommandUI cmd = new NewCircularArcUI(this, action, SelectedPoint);
     m_Controller.StartCommand(cmd);
 }