Exemple #1
0
 private void DuplicateState()
 {
     if (ErrorController.DuplicateCheck(currentListView.FindItemWithText(NameTextBox.Text)))
     {
         MessageBox.Show(NameTextBox.Text + " is already in " + currentSection + "list.", "Warning",
                         MessageBoxButtons.OK, MessageBoxIcon.Warning);
         mViewHandler.SaveButtonDeactive();
     }
     else
     {
         ListController.AddDataToList(newData, currentListView);
         mViewHandler.RefreshInputFields();
         mViewHandler.SaveButtonActive();
     }
 }