private void öffnenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     RemoveAllCriterias();
     IdInternDetails.LoadDetails();
     AddCriteriaOnLoad();
     RefreshView();
 }
Ejemplo n.º 2
0
 private void BtnSave_Click(object sender, EventArgs e)
 {
     if (IdInternDetails.LoadedDataPath != "")
     {
         IdInternDetails.SaveDetails();
     }
     else
     {
         IdInternDetails.SaveDetailsAs();
     }
 }
Ejemplo n.º 3
0
 public MainWindowV(List <Criteria> criteriaList)
 {
     InitializeComponent();
     CriteriaList          = criteriaList;
     Presenter             = new MainWindowP(this);
     textPartSelectionList = new List <CriteriaTextSelectionV>();
     IdInternDetails.SetBasis(this);
     InternDetails = IdInternDetails.presenter.CurShowedInternDetails;
     FlpCriteriaContainer.HorizontalScroll.Enabled = false;
     FlpCriteriaContainer.VerticalScroll.Enabled   = true;
     RefreshToolStripMenu();
     ViewState = ViewState.WaitingForInput;
 }
Ejemplo n.º 4
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);
     }
 }
Ejemplo n.º 5
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();
 }
        private void BtnAddCriteria_Click(object sender, EventArgs e)
        {
            this.SuspendLayout();

            List <Criteria> CurrentlyNotShownCriterias = GetCurrentlyNotShownCriterias();

            ChooseCriteriaManagerView chooseCriteriaManager = new ChooseCriteriaManagerView(CurrentlyNotShownCriterias);

            if (chooseCriteriaManager.ShowDialog() == DialogResult.OK)
            {
                for (int i = 0; i < chooseCriteriaManager.SelectedItemsIndexes.Count; i++)
                {
                    int criteriaIndex = chooseCriteriaManager.SelectedItemsIndexes[i];
                    AddCriteria(CurrentlyNotShownCriterias[criteriaIndex], null, false);
                }
            }
            this.ResumeLayout();
            VerticalScroll.Value = 0;
            IdInternDetails.Focus();
        }
Ejemplo n.º 7
0
 private void speichernUnterToolStripMenuItem_Click(object sender, EventArgs e)
 {
     IdInternDetails.SaveDetailsAs();
 }
Ejemplo n.º 8
0
 private void öffnenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     IdInternDetails.LoadDetails();
     RefreshView();
 }