public WatchUI(WatchManager watchManager) { this.AutoKeyHandling = true; this.treeControl = new DataTreeControl(true); this.treeControl.Tree.BorderStyle = BorderStyle.None; this.treeControl.Resize += new EventHandler(this.TreeControlResize); this.treeControl.Tree.Font = PluginBase.Settings.DefaultFont; this.treeControl.Dock = DockStyle.Fill; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.treeControl); this.watchManager = watchManager; this.watchManager.ExpressionAdded += WatchManager_ExpressionAdded; this.watchManager.ExpressionRemoved += WatchManager_ExpressionRemoved; this.watchManager.ExpressionReplaced += WatchManager_ExpressionReplaced; this.watchManager.ExpressionsCleared += WatchManager_ExpressionsCleared; this.watchManager.ExpressionsLoaded += WatchManager_ExpressionsLoaded; }
/// <summary> /// Initializes important variables /// </summary> private void InitBasics() { String dataPath = Path.Combine(PathHelper.DataDir, "FlashDebugger"); if (!Directory.Exists(dataPath)) Directory.CreateDirectory(dataPath); this.settingFilename = Path.Combine(dataPath, "Settings.fdb"); this.pluginImage = PluginBase.MainForm.FindImage("54|23|5|4"); breakPointManager = new BreakPointManager(); watchManager = new WatchManager(); debugManager = new DebuggerManager(); liveDataTip = new LiveDataTip(); }