public static EditTripWindow GetInstance() { if (_instance == null) { _instance = new EditTripWindow(); } return(_instance); }
private void OnWindowClosed(object sender, EventArgs e) { _instance = null; }
private void OnWindowClosing(object sender, CancelEventArgs e) { ParentWindow.NotifyEditWindowClosing(); this.SavePlacement(); _instance = null; }