예제 #1
0
        private void btnAddNew_Click(object sender, EventArgs e)
        {
            FrmEditCustomer dlg = new FrmEditCustomer();

            if (DialogResult.OK == dlg.ShowDialog())
            {
                BindData();
            }
        }
예제 #2
0
        private void winGridViewPager1_OnEditSelected(object sender, EventArgs e)
        {
            string ID = this.winGridViewPager1.gridView1.GetFocusedRowCellDisplayText("ID");

            if (!string.IsNullOrEmpty(ID))
            {
                FrmEditCustomer dlg = new FrmEditCustomer();
                dlg.ID = ID;
                //dlg.IDList = IDList;
                if (DialogResult.OK == dlg.ShowDialog())
                {
                    BindData();
                }
            }
        }