private void OnNodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (m_treeViewLogicManager.IsLeafSelected())
     {
         //btnSend.PerformClick();
     }
 }
示例#2
0
        public void EnableButtons()
        {
            bool isAllRequiredFieldAreFilledForSet = !(String.IsNullOrEmpty(txtValue.Text));
            bool isSelected = m_treeView.SelectedNode != null;
            bool isLeaf     = m_treeViewLogicManager.IsLeafSelected();

            toolBtnNew.Enabled       = true;
            toolBtnSave.Enabled      = IsDirty && !String.IsNullOrEmpty(txtName.Text);
            toolBtnRemove.Enabled    = isSelected;
            toolBtnDuplicate.Enabled = isSelected && isLeaf;
        }