예제 #1
0
 public GenericWindow(WPFBase w, string file)
 {
     wpf      = w;
     tool     = Tools.Items.FirstOrDefault(x => x.type == w.GetType());
     winform  = null;
     fileName = file;
 }
예제 #2
0
 public GenericWindow(WinFormsBase f, string file)
 {
     wpf      = null;
     winform  = f;
     tool     = Tools.Items.FirstOrDefault(x => x.type == f.GetType());
     fileName = file;
 }
예제 #3
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);
 }