private void _treeAuditClearSelectionBTN_Click(object sender, EventArgs e) { TreeAuditValueDO tav = _BS_treeAudits.Current as TreeAuditValueDO; if (tav == null) { return; } tav.TreeDefaultValues.Clear(); _tdvDGV.Invalidate(); }
private void _tavDeleteBTN_Click(object sender, EventArgs e) { TreeAuditValueDO tav = _BS_treeAudits.Current as TreeAuditValueDO; if (tav == null) { return; } if (tav.IsPersisted) { tav.Delete(); } _BS_treeAudits.Remove(tav); }
private void _BS_treeAudits_CurrentItemChanged(object sender, EventArgs e) { TreeAuditValueDO tav = _BS_treeAudits.Current as TreeAuditValueDO; if (tav == null) { return; } if (!tav.TreeDefaultValues.IsPopulated) { tav.TreeDefaultValues.Populate(); } _tdvDGV.SelectedItems = tav.TreeDefaultValues; }
private void _treeAuditDGV_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == this._treeAudit_Remove_ButtonCol.Index) { TreeAuditValueDO tav = this._BS_treeAudits[e.RowIndex] as TreeAuditValueDO; if (tav != null) { if (tav.IsPersisted) { tav.Delete(); } this._BS_treeAudits.Remove(tav); } } }