예제 #1
0
 private void selectControl()
 {
     if (lv_controls.SelectedItems.Count > 0)
     {
         var info = lv_controls.SelectedItems[0].Tag.ToString();
         m_editor.selectCtrl(info);
     }
 }
예제 #2
0
        private void selectControl()
        {
            cEditor editor = cMainEditor.getDocActive();

            if (lv_controls.SelectedItems.Count > 0 && editor != null)
            {
                var info = lv_controls.SelectedItems[0].Tag.ToString();
                editor.selectCtrl(info);
            }
        }
예제 #3
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));
                    }
                }
            }
        }
예제 #4
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);
             }
         }
     }
 }