Example #1
0
 private void btnRemove_Click(object sender, EventArgs e)
 {
     if (lstFiles.SelectedIndex != -1)
     {
         RSARFileNode file = cboAllFiles.Items[cboAllFiles.SelectedIndex] as RSARFileNode;
         file._groupRefs.RemoveAt(lstFiles.SelectedIndex);
         _targetGroup._files.RemoveAt(lstFiles.SelectedIndex);
         file.GetName();
         lstFiles_SelectedIndexChanged(null, null);
     }
 }
Example #2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     if (cboAllFiles.SelectedIndex != -1)
     {
         RSARFileNode file = cboAllFiles.Items[cboAllFiles.SelectedIndex] as RSARFileNode;
         file._groupRefs.Add(_targetGroup);
         _targetGroup._files.Add(file);
         file.GetName();
         lstFiles.SelectedIndex = lstFiles.Items.Count - 1;
     }
 }