Inheritance: System.Windows.Forms.ListViewItem, IAWBTraceListener
        /// <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);
            }
        }
Example #2
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();
        }
Example #3
0
 public void AddLog(bool Skipped, AWBLogListener LogListener)
 {
     if (Skipped)
     {
         LogListener.AddAndDateStamp(lvIgnored);
         resizeListView(lvIgnored);
     }
     else
     {
         LogListener.AddAndDateStamp(lvSaved);
         resizeListView(lvSaved);
     }
 }
Example #4
0
 public void AddLog(bool Skipped, AWBLogListener LogListener)
 {
     if (Skipped)
     {
         LogListener.AddAndDateStamp(lvIgnored);
         resizeListView(lvIgnored);
     }
     else
     {
         LogListener.AddAndDateStamp(lvSaved);
         resizeListView(lvSaved);
     }
 }
Example #5
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);
        }
Example #6
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);
            }
        }
Example #7
0
        private void LogLists_MouseMove(object sender, MouseEventArgs e)
        {
            // Wine workaround: ToolTipText for ListViewItem doesn't work under Wine, use MouseMove event to show tooltip instead
            if (!Globals.UsingLinux)
            {
                return;
            }

            // find list view item under mouse, if any
            AWBLogListener currentLogListenerItem = (AWBLogListener)((ListView)sender).GetItemAt(e.X, e.Y);

            // if same item, don't redisplay tooltip (avoid rapidly flickerting tooltip)
            if (currentLogListenerItem != null && currentLogListenerItem != previousLogListenerItem)
            {
                previousLogListenerItem = currentLogListenerItem;

                tooltip.Show(currentLogListenerItem.ToolTipText, (ListView)sender, e.Location);
            }
        }
 void IAutoWikiBrowserCommands.AddLogItem(bool skipped, AWBLogListener logListener)
 {
     if (loggingEnabled) logControl.AddLog(skipped, logListener);
 }
 void IAutoWikiBrowserCommands.AddLogItem(bool Skipped, AWBLogListener LogListener)
 { logControl.AddLog(Skipped, LogListener); }
Example #10
0
        private void LogLists_MouseMove(object sender, MouseEventArgs e)
        {
            // Wine workaround: ToolTipText for ListViewItem doesn't work under Wine, use MouseMove event to show tooltip instead
            if(!Globals.UsingLinux)
                return;

            // find list view item under mouse, if any
            AWBLogListener currentLogListenerItem = (AWBLogListener)((ListView)sender).GetItemAt(e.X, e.Y);

            // if same item, don't redisplay tooltip (avoid rapidly flickerting tooltip)
            if (currentLogListenerItem != null && currentLogListenerItem != previousLogListenerItem)
            {
                previousLogListenerItem = currentLogListenerItem;

                tooltip.Show(currentLogListenerItem.ToolTipText, (ListView)sender, e.Location);
            }
        }