public static frmConfigDlg InstanceObject() { if (uniqueInstance == null) { lock (padlock) { if (uniqueInstance == null) { uniqueInstance = new frmConfigDlg(); } } } return(uniqueInstance); }
private void frmConfigDlg_FormClosing(object sender, FormClosingEventArgs e) { uniqueInstance = null; AnimateWindow(this.Handle, 500, AW_BLEND | AW_HIDE); }
private void frmConfigDlg_FormClosed(object sender, FormClosedEventArgs e) { uniqueInstance = null; }