Exemplo n.º 1
0
 public void HideListBox()
 {
     if (EntryWithListBox != null)
     {
         PropertyPage   pp  = GetPropertyPage(EntryWithListBox);
         IPropertyEntry elb = EntryWithListBox;
         EntryWithListBox = null;
         pp?.Refresh(elb);
     }
     listBox.Hide();
     listBox.Items.Clear();
 }
Exemplo n.º 2
0
 public void HideTextBox()
 {
     // we cannot call EntryWithTextBox.EndEdit, because we don't know, whether it was aborted or not.
     // EntryWithTextBox.EndEdit must be called where Tab, Enter or click occurs
     if (EntryWithTextBox != null)
     {
         PropertyPage   pp  = GetPropertyPage(EntryWithTextBox);
         IPropertyEntry etb = EntryWithTextBox;
         EntryWithTextBox = null;
         pp?.Refresh(etb);
     }
     textBox.Hide();
 }