void btnAdd_Click(object sender, EventArgs e) { FmFinActInfo fm = new FmFinActInfo(); fm.SelectValue += new Miles.Framework.UI.Forms.FmCustomInfo.SelectValueHandler(fm_SelectValue); fm.ShowDialog(); }
void btnEdit_Click(object sender, EventArgs e) { if (mDataGrid1.DataSource == null) { return; } Model.Tb_fin_act info = mDataGrid1.GetCurrentEntity() as Model.Tb_fin_act; FmFinActInfo fm = new FmFinActInfo(info); fm.SelectValue += new Miles.Framework.UI.Forms.FmCustomInfo.SelectValueHandler(fm_SelectValue); fm.ShowDialog(); }