示例#1
0
文件: Form1.cs 项目: labeuze/source
 private void OpenDialog()
 {
     Dialog dialog = new Dialog();
     // problem with ShowDialog()
     //dialog.ShowDialog();
     // problem with ShowDialog(this)
     dialog.ShowDialog(this);
     // no problem with Show()
     //dialog.Show();
 }
示例#2
0
文件: Form1.cs 项目: 24/source_04
        private void OpenDialog()
        {
            Dialog dialog = new Dialog();

            // problem with ShowDialog()
            //dialog.ShowDialog();
            // problem with ShowDialog(this)
            dialog.ShowDialog(this);
            // no problem with Show()
            //dialog.Show();
        }
示例#3
0
文件: Form1.cs 项目: labeuze/source
 private void OpenDialogInvoke()
 {
     if (InvokeRequired)
     {
         Invoke((Action)OpenDialogInvoke);
     }
     else
     {
         Dialog dialog = new Dialog();
         // problem with ShowDialog()
         //dialog.ShowDialog();
         // problem with ShowDialog(this)
         dialog.ShowDialog(this);
         // no problem with Show()
         //dialog.Show();
     }
 }
示例#4
0
文件: Form1.cs 项目: 24/source_04
 private void OpenDialogInvoke()
 {
     if (InvokeRequired)
     {
         Invoke((Action)OpenDialogInvoke);
     }
     else
     {
         Dialog dialog = new Dialog();
         // problem with ShowDialog()
         //dialog.ShowDialog();
         // problem with ShowDialog(this)
         dialog.ShowDialog(this);
         // no problem with Show()
         //dialog.Show();
     }
 }
示例#5
0
文件: Form2.cs 项目: labeuze/source
 private void OpenDialog()
 {
     Dialog dialog = new Dialog();
     dialog.ShowDialog();
 }
示例#6
0
        private void OpenDialog()
        {
            Dialog dialog = new Dialog();

            dialog.ShowDialog();
        }