示例#1
0
 private void undoPopup_CloseUp(object sender, Syncfusion.Windows.Forms.PopupClosedEventArgs args)
 {
     if (args.PopupCloseType == PopupCloseType.Done)
     {
         // Undo Actions here based on selections in the listbox.
     }
     this.undoList.SelectedIndex = -1;
 }
示例#2
0
 private void popupControlContainer1_CloseUp(object sender, Syncfusion.Windows.Forms.PopupClosedEventArgs args)
 {
     // Transfer data from the popup.
     if (args.PopupCloseType == PopupCloseType.Done)
     {
         this.sourceTextBox.Text = this.popupTextBox.Text;
     }
     // Set focus back to textbox.
     if (args.PopupCloseType == PopupCloseType.Done ||
         args.PopupCloseType == PopupCloseType.Canceled)
     {
         this.sourceTextBox.Focus();
     }
 }
 public override void DropDownContainerCloseDropDown(object sender, Syncfusion.Windows.Forms.PopupClosedEventArgs e)
 {
     this.calci.ValueCalculated -= new CalculatorValueCalculatedEventHandler(calci_ValueCalculated);
     this.DropDownContainer.Controls.Remove(this.calci);
 }