private void BtnSave_Click(object sender, EventArgs e) { if (IdInternDetails.LoadedDataPath != "") { IdInternDetails.SaveDetails(); } else { IdInternDetails.SaveDetailsAs(); } }
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); } }
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(); }
private void speichernToolStripMenuItem_Click(object sender, EventArgs e) { IdInternDetails.SaveDetails(); }