コード例 #1
0
        private void _treeAuditClearSelectionBTN_Click(object sender, EventArgs e)
        {
            TreeAuditValueDO tav = _BS_treeAudits.Current as TreeAuditValueDO;

            if (tav == null)
            {
                return;
            }
            tav.TreeDefaultValues.Clear();
            _tdvDGV.Invalidate();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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;
        }
コード例 #4
0
 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);
         }
     }
 }