コード例 #1
0
 private void treeViewDataEntity_AfterSelect(object sender, TreeViewEventArgs e)
 {
     this._dataEntityTreeNode = this.treeViewDataEntity.SelectedNode as IDataEntityTreeNode;
     if (this._dataEntityTreeNode != null)
     {
         this.txtSelectedName.Text = this._dataEntityTreeNode.FullName;
     }
     else
     {
         this.txtSelectedName.Text = String.Empty;
     }
 }
コード例 #2
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     this._dataEntityTreeNode = this.treeViewDataEntity.SelectedNode as IDataEntityTreeNode;
     if (this._dataEntityTreeNode == null)
     {
         MessageBox.Show(Language.Current.DataEntityTreeChooseView_NoItemSelected,
                         CommonLanguage.Current.MessageCaption_Notice,
                         MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     if (this.ShowDataItem && this._dataEntityTreeNode.IsDataEntity)
     {
         MessageBox.Show(Language.Current.DataEntityTreeChooseView_NoDataItemSelected,
                         CommonLanguage.Current.MessageCaption_Notice,
                         MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     this.DialogResult = DialogResult.OK;
     this.Close();
 }
コード例 #3
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     this._dataEntityTreeNode = null;
     this.DialogResult        = DialogResult.OK;
     this.Close();
 }