Exemplo n.º 1
0
 private void OnNodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (m_treeViewLogicManager.IsLeafSelected())
     {
         //btnSend.PerformClick();
     }
 }
Exemplo n.º 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;
        }