Пример #1
0
        protected override void New()
        {
            base.New();
            frmEditOAFile myEditOAFile = new frmEditOAFile();

            myEditOAFile.New();
            if (myEditOAFile.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
            myEditOAFile.Dispose();
        }
Пример #2
0
        protected override void Edit()
        {
            if (gvList.FocusedRowHandle < 0)
            {
                return;
            }
            base.Edit();
            DataRow       dr           = gvList.GetDataRow(gvList.FocusedRowHandle);
            frmEditOAFile myEditOAFile = new frmEditOAFile();

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