Esempio n. 1
0
 private void btnUnselect_Click(object sender, System.EventArgs e)
 {
     Utilities.ConfigItem item = (Utilities.ConfigItem)lstSelected.SelectedItem;
     if (item == null)
     {
         return;
     }
     lstSelected.Items.Remove(item);
 }
Esempio n. 2
0
 private void btnSelect_Click(object sender, System.EventArgs e)
 {
     Utilities.ConfigItem item = (Utilities.ConfigItem)lstAvailable.SelectedItem;
     if (item == null)
     {
         return;
     }
     if (IsAlreadySelected(item))
     {
         return;
     }
     lstSelected.Items.Add(item);
 }
Esempio n. 3
0
 private bool IsAlreadySelected(Utilities.ConfigItem o)
 {
     return(IsAlreadySelected(o.Id));
 }