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); } }
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); } }
public frmModify(TreeInfo treeInfo) { InitializeComponent(); this._treeInfo = treeInfo; }