private void Window_Closing_1(object sender, System.ComponentModel.CancelEventArgs e) { currentInstance = null; }