private void btnEdit_Click(object sender, EventArgs e) { KB kb = this.GetSelectedKB(); if (kb != null) { frmAdd frm = new frmAdd(kb); if (frm.ShowDialog() == DialogResult.OK) { this.RefreshKBInCategory(); } } }
private void btnAdd_Click(object sender, EventArgs e) { frmAdd frm = new frmAdd(); frm.ShowDialog(); }