public static frmConfig getInstance() { if (uniqueInstance == null) { lock (padlock) { if (uniqueInstance == null) { uniqueInstance = new frmConfig(); } } } return(uniqueInstance); }
private void frmConfig_FormClosing(object sender, FormClosingEventArgs e) { uniqueInstance = null; AnimateWindow(this.Handle, 500, AW_BLEND | AW_HIDE); }