예제 #1
0
        public void ShowAddEditJnyDetailsWindow()
        {
            if (this.editMileageWindow == null)
            {
                SetupWindow(
                    this.editMileageWindow = new EditMileageWindow(),
                    new EditMileageViewModel(),
                    this.CloseEditJnyDetailsWindow,
                    this.EditJnyDetailsWindowClosed);
            }

            this.editMileageWindow.Focus();
        }
예제 #2
0
 /// <summary>
 /// Form closed, set to null.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void EditJnyDetailsWindowClosed(object sender, EventArgs e)
 {
     this.editMileageWindow = null;
 }