예제 #1
0
        private void selectControl(TreeNode node)
        {
            cEditor editor = cMainEditor.getDocActive();

            if (node != null && node.Tag != null && editor != null)
            {
                var info = node.Tag.ToString();
                if (info.Length > 0)
                {
                    var infoType = info.Substring(0, 1);
                    if ("@SL".IndexOf(infoType) == -1)
                    {
                        editor.selectCtrl(info);
                    }
                    else if (infoType == "S" || infoType == "L")
                    {
                        editor.selectSection(info.Substring(1));
                    }
                }
            }
        }
예제 #2
0
 private void selectAndShowInfo(TreeNode node)
 {
     if (node != null && node.Tag != null)
     {
         var info = node.Tag.ToString();
         if (info.Length > 0)
         {
             var infoType = info.Substring(0, 1);
             if (infoType == "@")
             {
                 tx_descrip.Text = info.Substring(4);
             }
             else if (infoType == "S" || infoType == "L")
             {
                 m_editor.selectSection(info.Substring(1));
             }
             else
             {
                 tx_descrip.Text = getObjectDescription(getControl(info));
                 m_editor.selectCtrl(info);
             }
         }
     }
 }