private void DeleteFileFromList(int index) { if (index >= 0) { MailObject.Attachments.RemoveAt(index); FileNames.RemoveAt(index); } }
public void UnloadData() { if (SelectedIndex >= 0 && SelectedIndex < Sessions.Count()) { if (savedframedetailIndex != -1 && savedframedetailIndex > SelectedIndex) { displayedIndex--; savedframedetailIndex--; } else if (savedframedetailIndex == SelectedIndex) { displayedIndex = -1; savedframedetailIndex = -1; } CsvPaths.RemoveAt(SelectedIndex); Sessions.RemoveAt(SelectedIndex); FileNames.RemoveAt(SelectedIndex); frameRanges.RemoveAt(SelectedIndex); SelectedIndex = -1; UpdateGraphs(); UpdateColorIdentifier(); } }