/// <summary> /// Show the Mileage details window. /// </summary> public void ShowJnyDetailsWindow() { if (this.jnyDetailsWindow == null) { SetupWindow( this.jnyDetailsWindow = new MileageDetailsWindow(), new MileageDetailsViewModel(), CloseJnyDetailsWindow, JnyDetailsWindowClosed); } this.jnyDetailsWindow.Focus(); }
/// <summary> /// Form closed, set to null. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void JnyDetailsWindowClosed(object sender, EventArgs e) { this.jnyDetailsWindow = null; }