/// <summary> /// Adds the item to the saved or skipped lists as appropriate /// Unless user has explicit sort on by column clicking, sorts log lists newest first /// </summary> /// <param name="skipped"></param> /// <param name="logListener"></param> public void AddLog(bool skipped, AWBLogListener logListener) { if (skipped) { logListener.AddAndDateStamp(lvIgnored); ResizeListView(lvIgnored); // sort descending (newest first) unless user has clicked columns to create custom sort order if(lvIgnored.Sorting == SortOrder.None) { lvIgnored.ListViewItemSorter = new ListViewItemComparer(); lvIgnored.Sort(); } } else { logListener.AddAndDateStamp(lvSaved); ResizeListView(lvSaved); // sort descending (newest first) unless user has clicked columns to create custom sort order if(lvSaved.Sorting == SortOrder.None) { lvSaved.ListViewItemSorter = new ListViewItemComparer(); lvSaved.Sort(); } } if (LogAdded != null) LogAdded(skipped, logListener); RefreshButtonEnablement(); }
public void AddLog(bool Skipped, AWBLogListener LogListener) { if (Skipped) { LogListener.AddAndDateStamp(lvIgnored); resizeListView(lvIgnored); } else { LogListener.AddAndDateStamp(lvSaved); resizeListView(lvSaved); } }
public void AddLog(bool skipped, AWBLogListener logListener) { if (skipped) { logListener.AddAndDateStamp(lvIgnored); ResizeListView(lvIgnored); } else { logListener.AddAndDateStamp(lvSaved); ResizeListView(lvSaved); } if (LogAdded != null) LogAdded(skipped, logListener); }
public void AddLog(bool Skipped, AWBLogListener LogListener) { if (Skipped) { LogListener.AddAndDateStamp(lvIgnored); resizeListView(lvIgnored); } else { LogListener.AddAndDateStamp(lvSaved); resizeListView(lvSaved); } if (LogAdded != null) { LogAdded(Skipped, LogListener); } }