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; }
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); }