private void BtnEdit_Click(object sender, EventArgs e) { if (DATADGV[3, DATADGV.CurrentCell.RowIndex].Value.ToString() != "") { M_Data.FiledTypeNew wphCa = new M_Data.FiledTypeNew(Convert.ToInt32(DATADGV[3, DATADGV.CurrentCell.RowIndex].Value.ToString())); wphCa.ShowDialog(); mainsql(); } }
private void btnadd_Click(object sender, EventArgs e) { M_Data.FiledTypeNew wphCa = new M_Data.FiledTypeNew(0); wphCa.ShowDialog(); mainsql(); }