예제 #1
0
 private void dgvTree_SelectionChanged(object sender, EventArgs e)
 {
     try
     {
         if (dgvTree.CurrentRow.Index > 0)
         {
             DataGridViewRow dr = this.dgvTree.CurrentRow;
             this._selectedTree = dr.DataBoundItem as TreeInfo;
         }
     }
     catch (Exception ex)
     {
         Log.Instance.ErrorLog(ex);
     }
 }
예제 #2
0
 private void dgvTree_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     try
     {
         if (this._selectedTree == null)
         {
             DataGridViewRow dr = this.dgvTree.CurrentRow;
             this._selectedTree = dr.DataBoundItem as TreeInfo;
         }
     }
     catch (Exception ex)
     {
         Log.Instance.ErrorLog(ex);
     }
 }
예제 #3
0
        public frmModify(TreeInfo treeInfo)
        {
            InitializeComponent();

            this._treeInfo = treeInfo;
        }