public static CopyrightForm Instance(Form parent) { if (_instance != null) { return(_instance); } _instance = new CopyrightForm { MdiParent = parent }; LanguageClass.Instance.RegisterChangeNotifiy(CopyrightForm_OnRaiseLanguageChangedHandler); return(_instance); }
public static CopyrightForm Instance(Form parent) { if (_instance != null) { return(_instance); } _instance = new CopyrightForm { MdiParent = parent }; LanguageClass.Instance().OnRaiseLanguageChangedHandler += CopyrightForm_OnRaiseLanguageChangedHandler; return(_instance); }
private void CopyrightForm_FormClosing(object sender, FormClosingEventArgs e) { _instance = null; // this.Hide(); // e.Cancel = true; }