Esempio n. 1
0
        /// <summary>
        /// Runs the command
        /// </summary>
        protected override Result RunCommand(RhinoDoc doc, RunMode mode)
        {
            SampleCsModelessTextForm.setRhinoDoc(doc);
            if (null == Form)
            {
                Form             = new SampleCsModelessTextForm();
                Form.FormClosed += new System.Windows.Forms.FormClosedEventHandler(Form_FormClosed);
                Form.Show(RhinoApp.MainWindow());
            }

            return(Result.Success);
        }