/// <summary>
 /// The event handler that performs the actions that are required when the BeforeChange event is raised - defines a constraint for something that is not allowed to add to the list and rejects the change.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ListBeforeChangeMethod(object sender, CustomDatastructures.Core.RejectableEventArgs <string> e)
 {
     inputValue = textBox.Text;
     if (inputValue == "10")
     {
         e.RejectOperation();
     }
 }
Пример #2
0
 private void List_BeforeChange(object sender, CustomDatastructures.Core.RejectableEventArgs <string> e)
 {
     if (changeCheck.Checked)
     {
         if (invalidateAction())
         {
             e.RejectOperation();
         }
     }
 }