Exemplo n.º 1
0
        public void ShowModelessDialog()
        {
            DocumentLock doclock = BaseData.doc.LockDocument();
            GoatForm     form    = new GoatForm();

            Application.ShowModelessDialog(form);
            doclock.Dispose();
        }
Exemplo n.º 2
0
 public void pickPoint2()
 {
     // 打开对话框窗体
     using (GoatForm form = new GoatForm()){
         Application.ShowModalDialog(form);
         //点击“确定”按钮命令行显示窗体文本框中的信息
         BaseData.ed.WriteMessage(form.Text);
     }
 }
Exemplo n.º 3
0
        public void pick2()
        {
            DocumentLock doclock = BaseData.doc.LockDocument();

            //操作过程
            using (GoatForm form = new GoatForm()) {
                Application.ShowModalDialog(form);
            }
            doclock.Dispose();
        }