Exemple #1
0
        protected override void New()
        {
            base.New();
            frmEditNotice myEditNotice = new frmEditNotice();

            myEditNotice.New();
            if (myEditNotice.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
            myEditNotice.Dispose();
        }
Exemple #2
0
        protected override void Edit()
        {
            if (gvBase.FocusedRowHandle < 0)
            {
                return;
            }

            base.Edit();
            DataRow       dr           = gvBase.GetDataRow(gvBase.FocusedRowHandle);
            frmEditNotice myEditNotice = new frmEditNotice();

            myEditNotice.Edit(dr["Aid"].ToString());
            if (myEditNotice.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
            myEditNotice.Dispose();
        }