internal LineExtensionControl(LineExtensionUI cmd, LineFeature extendLine, Operation recall)
        {
            InitializeComponent();

            Zero();
            m_Cmd = cmd;
            m_ExtendLine = extendLine;

            LineExtensionOperation op = (recall as LineExtensionOperation);
            if (op!=null)
            {
                m_IsExtendFromEnd = op.IsExtendFromEnd;
                m_Length = new Distance(op.Length);
                m_WantLine = (op.NewLine!=null);
            }
        }
Exemple #2
0
        private void LineExtend(IUserAction action)
        {
            try
            {
                IControlContainer cc = CreateContainer(action);
                CommandUI cmd = new LineExtensionUI(cc, action);
                m_Controller.StartCommand(cmd);
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }