Inheritance: System.Windows.Forms.Form
 public GenericWindow(WinFormsBase f, string file)
 {
     wpf      = null;
     winform  = f;
     tool     = Tools.Items.FirstOrDefault(x => x.type == f.GetType());
     fileName = file;
 }
 public GenericWindow(WPFBase w, string file)
 {
     wpf      = w;
     tool     = Tools.Items.FirstOrDefault(x => x.type == w.GetType());
     winform  = null;
     fileName = file;
 }
Esempio n. 3
0
 public GenericWindow(WinFormsBase f, string file)
 {
     wpf = null;
     winform = f;
     tool = Tools.Items.FirstOrDefault(x => x.type == f.GetType());
     fileName = file;
 }
Esempio n. 4
0
 public GenericWindow(WPFBase w, string file)
 {
     wpf = w;
     tool = Tools.Items.FirstOrDefault(x => x.type == w.GetType());
     winform = null;
     fileName = file;
 }
 public void Dispose()
 {
     if (wpf != null)
     {
         wpf.Closed -= wpfClosed;
         wpf         = null;
     }
     else if (winform != null)
     {
         winform.FormClosed -= winformClosed;
         winform             = null;
     }
     Disposing?.Invoke(this, EventArgs.Empty);
 }
Esempio n. 6
0
 public void Dispose()
 {
     if (wpf != null)
     {
         wpf.Closed -= wpfClosed;
         wpf = null;
     }
     else if (winform != null)
     {
         winform.FormClosed -= winformClosed;
         winform = null;
     }
     Disposing?.Invoke(this, EventArgs.Empty);
 }