示例#1
0
 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;
     }
 }
示例#2
0
        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;
            }
        }
示例#3
0
        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;
        }
示例#4
0
 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;
 }