コード例 #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);
 }