Exemple #1
0
 private void BtnSave_Click(object sender, EventArgs e)
 {
     if (IdInternDetails.LoadedDataPath != "")
     {
         IdInternDetails.SaveDetails();
     }
     else
     {
         IdInternDetails.SaveDetailsAs();
     }
 }
Exemple #2
0
 private void MainWindowV_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.S)
     {
         if (IdInternDetails.LoadedDataPath != "")
         {
             IdInternDetails.SaveDetails();
         }
         else
         {
             IdInternDetails.SaveDetailsAs();
         }
     }
     if (e.KeyCode == Keys.F1)
     {
         informationenToolStripMenuItem_Click(sender, e);
     }
 }
Exemple #3
0
 private void BtnNew_Click(object sender, EventArgs e)
 {
     if (!IdInternDetails.presenter.savedChanges)
     {
         ConfirmationDialog saving = new ConfirmationDialog(CREATE_NEW_DOC_TITLE, CREATE_NEW_DOC_TEXT);
         if (saving.ShowDialog() == DialogResult.Yes)
         {
             if (IdInternDetails.LoadedDataPath != "")
             {
                 IdInternDetails.SaveDetailsAs();
             }
             else
             {
                 IdInternDetails.SaveDetails();
             }
         }
     }
     IdInternDetails.CleanUI();
     RefreshView();
 }
Exemple #4
0
 private void speichernToolStripMenuItem_Click(object sender, EventArgs e)
 {
     IdInternDetails.SaveDetails();
 }