AddAndDateStamp() 공개 메소드

public AddAndDateStamp ( ListView listView ) : void
listView System.Windows.Forms.ListView
리턴 void
예제 #1
0
        /// <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();
        }
예제 #2
0
 public void AddLog(bool Skipped, AWBLogListener LogListener)
 {
     if (Skipped)
     {
         LogListener.AddAndDateStamp(lvIgnored);
         resizeListView(lvIgnored);
     }
     else
     {
         LogListener.AddAndDateStamp(lvSaved);
         resizeListView(lvSaved);
     }
 }
예제 #3
0
        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);
        }
예제 #4
0
        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);
            }
        }