Exemplo n.º 1
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            FmProductInfo fm = new FmProductInfo();

            fm.SelectValue += Fm_SelectValue;
            fm.ShowDialog();
        }
Exemplo n.º 2
0
        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();
        }