Наследование: System.Windows.Forms.Form
Пример #1
0
 public GenericWindow(WinFormsBase f, string file)
 {
     wpf      = null;
     winform  = f;
     tool     = Tools.Items.FirstOrDefault(x => x.type == f.GetType());
     fileName = file;
 }
Пример #2
0
 public GenericWindow(WPFBase w, string file)
 {
     wpf      = w;
     tool     = Tools.Items.FirstOrDefault(x => x.type == w.GetType());
     winform  = null;
     fileName = file;
 }
Пример #3
0
 public GenericWindow(WinFormsBase f, string file)
 {
     wpf = null;
     winform = f;
     tool = Tools.Items.FirstOrDefault(x => x.type == f.GetType());
     fileName = file;
 }
Пример #4
0
 public GenericWindow(WPFBase w, string file)
 {
     wpf = w;
     tool = Tools.Items.FirstOrDefault(x => x.type == w.GetType());
     winform = null;
     fileName = file;
 }
Пример #5
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);
 }
Пример #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);
 }