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

            myEditOATask.New();
            if (myEditOATask.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
            myEditOATask.Dispose();
        }
Exemple #2
0
        protected override void Edit()
        {
            if (gvList.FocusedRowHandle < 0)
            {
                return;
            }
            base.Edit();
            DataRow       dr           = gvList.GetDataRow(gvList.FocusedRowHandle);
            frmEditOATask myEditOATask = new frmEditOATask();

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