示例#1
0
 /// <summary>
 /// Implemented only for demonstration purposes. This function is called when the config button
 /// is pressed (HasEmbeddedForm() must return false for this).
 /// </summary>
 /// <param name="owner"></param>
 public void ShowConfigDialog(Form owner)
 {
     this.dlg          = new EminusConfigDlg(this.tmpConfig);
     this.dlg.TopLevel = true;
     this.dlg.Owner    = owner;
     this.dlg.ShowDialog();
     this.dlg.ApplyChanges();
 }
示例#2
0
 public void HideConfigForm()
 {
     if (this.dlg != null)
     {
         this.dlg.ApplyChanges();
         this.dlg.Hide();
         this.dlg.Dispose();
         this.dlg = null;
     }
 }
示例#3
0
 public void ShowConfigForm(Panel panel)
 {
     this.dlg        = new EminusConfigDlg(this.tmpConfig);
     this.dlg.Parent = panel;
     this.dlg.Show();
 }
示例#4
0
 public void HideConfigForm()
 {
   if (this.dlg != null)
   {
     this.dlg.ApplyChanges();
     this.dlg.Hide();
     this.dlg.Dispose();
     this.dlg = null;
   }
 }
示例#5
0
 /// <summary>
 /// Implemented only for demonstration purposes. This function is called when the config button
 /// is pressed (HasEmbeddedForm() must return false for this).
 /// </summary>
 /// <param name="owner"></param>
 public void ShowConfigDialog(Form owner)
 {
   this.dlg = new EminusConfigDlg(this.tmpConfig);
   this.dlg.TopLevel = true;
   this.dlg.Owner = owner;
   this.dlg.ShowDialog();
   this.dlg.ApplyChanges();
 }
示例#6
0
 public void ShowConfigForm(Panel panel)
 {
   this.dlg = new EminusConfigDlg(this.tmpConfig);
   this.dlg.Parent = panel;
   this.dlg.Show();
 }