private void BtnAdd_Click(object sender, EventArgs e) { FmProductInfo fm = new FmProductInfo(); fm.SelectValue += Fm_SelectValue; fm.ShowDialog(); }
private void BtnEdit_Click(object sender, EventArgs e) { if (mDataGrid1.DataSource == null) { return; } Model.Tb_product_info info = mDataGrid1.GetCurrentEntity() as Model.Tb_product_info; FmProductInfo fm = new FmProductInfo(info); fm.SelectValue += Fm_SelectValue; fm.ShowDialog(); }