Esempio n. 1
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            FmPartInfo fm = new FmPartInfo();

            fm.Tag          = this.InfoTmp.Tmp_Id;
            fm.SelectValue += FmAdd_SelectValue;
            fm.ShowDialog();
        }
Esempio n. 2
0
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            if (this.mDataGrid1.CurrentRow == null)
            {
                this.DoSelectValueEvent(null); return;
            }

            Model.Tb_tmp_part info = mDataGrid1.GetCurrentEntity() as Model.Tb_tmp_part;

            FmPartInfo fm = new FmPartInfo(info);

            fm.Tag          = this.Tag;
            fm.SelectValue += FmEdit_SelectValue;
            fm.ShowDialog();
        }