private void sbAddType_Click(object sender, EventArgs e) { frmAbstractType myAbstractType = new frmAbstractType(); myAbstractType.ShowDialog(); myAbstractType.Dispose(); RefreshType(); }
private void sbModiType_Click(object sender, EventArgs e) { if (gvType.FocusedRowHandle < 0) { return; } DataRow dr = gvType.GetDataRow(gvType.FocusedRowHandle); frmAbstractType myAbstractType = new frmAbstractType(); myAbstractType.bFlag = true; myAbstractType.sName = dr["F_Name"].ToString(); myAbstractType.ShowDialog(); myAbstractType.Dispose(); RefreshType(); }