示例#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);
 }
示例#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);
 }
示例#3
0
 private bool IsAlreadySelected(Utilities.ConfigItem o)
 {
     return(IsAlreadySelected(o.Id));
 }