public PluginUI(PluginMain pluginMain) { this.InitializeComponent(); this.InitializeContextMenu(); this.InitializeLocalization(); this.pluginMain = pluginMain; this.groups = new List <String>(); this.columnSorter = new ListViewSorter(); this.listView.ListViewItemSorter = this.columnSorter; Settings settings = (Settings)pluginMain.Settings; this.filesCache = new Dictionary <String, DateTime>(); try { if (settings.GroupValues.Length > 0) { this.groups.AddRange(settings.GroupValues); this.todoParser = BuildRegex(String.Join("|", settings.GroupValues)); this.isEnabled = true; this.InitGraphics(); } this.listView.ShowGroups = PluginBase.Settings.UseListViewGrouping; this.listView.GridLines = !PluginBase.Settings.UseListViewGrouping; } catch (Exception ex) { ErrorManager.ShowError(ex); this.isEnabled = false; } this.parseTimer = new System.Windows.Forms.Timer(); this.parseTimer.Interval = 2000; this.parseTimer.Tick += delegate { this.ParseNextFile(); }; this.parseTimer.Enabled = false; this.parseTimer.Tag = null; }
public PluginUI(PluginMain pluginMain) { this.InitializeComponent(); this.InitializeContextMenu(); this.InitializeLocalization(); this.pluginMain = pluginMain; this.groups = new List<String>(); this.columnSorter = new ListViewSorter(); this.listView.ListViewItemSorter = this.columnSorter; Settings settings = (Settings)pluginMain.Settings; this.filesCache = new Dictionary<String, DateTime>(); try { if (settings.GroupValues.Length > 0) { this.groups.AddRange(settings.GroupValues); this.todoParser = BuildRegex(String.Join("|", settings.GroupValues)); this.isEnabled = true; this.InitGraphics(); } this.listView.ShowGroups = PluginBase.Settings.UseListViewGrouping; this.listView.GridLines = !PluginBase.Settings.UseListViewGrouping; } catch (Exception ex) { ErrorManager.ShowError(ex); this.isEnabled = false; } this.parseTimer = new System.Windows.Forms.Timer(); this.parseTimer.Interval = 2000; this.parseTimer.Tick += delegate { this.ParseNextFile(); }; this.parseTimer.Enabled = false; this.parseTimer.Tag = null; }