private void frmCLEdit_Load(object sender, EventArgs e) { OpenCLRTBController CLCtrl = new OpenCLRTBController(rTBCLCode); foreach (OpenCLRTBController.StringsToMark stm in CLCtrl.OpenCLStrings) { TreeNode t = new TreeNode(stm.Description); foreach (string s in stm.Strings) { TreeNode t2 = new TreeNode(s); t2.ForeColor = stm.StringsColor; t2.NodeFont = stm.StringsFont; t.Nodes.Add(t2); } treeCLRef.Nodes.Add(t); t.ForeColor = stm.StringsColor; t.NodeFont = stm.StringsFont; } }
private void frmCLEdit_Load(object sender, EventArgs e) { OpenCLRTBController CLCtrl = new OpenCLRTBController(rTBCLCode); foreach (OpenCLRTBController.StringsToMark stm in CLCtrl.OpenCLStrings) { TreeNode t = new TreeNode(stm.Description); foreach (string s in stm.Strings) { TreeNode t2 = new TreeNode(s); t2.ForeColor = stm.StringsColor; t2.NodeFont = stm.StringsFont; t.Nodes.Add(t2); } treeCLRef.Nodes.Add(t); t.ForeColor = stm.StringsColor; t.NodeFont = stm.StringsFont; } positionUpdateTimer = new Timer(); positionUpdateTimer.Tick += new EventHandler(updateCursorPositionInfo); positionUpdateTimer.Enabled = true; positionUpdateTimer.Interval = 200; }