Esempio n. 1
0
        protected override void New()
        {
            base.New();
            frmEditProcess myEditProcess = new frmEditProcess();

            myEditProcess.strType = tvType.SelectedNode.Tag.ToString();
            myEditProcess.New();
            if (myEditProcess.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
            myEditProcess.Dispose();
        }
Esempio n. 2
0
        protected override void Edit()
        {
            if (gvBase.FocusedRowHandle < 0)
            {
                return;
            }
            base.Edit();
            DataRow        dr            = gvBase.GetDataRow(gvBase.FocusedRowHandle);
            frmEditProcess myEditProcess = new frmEditProcess();

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