示例#1
0
        protected override void New()
        {
            base.New();
            frmEditWorkGroup myEditWorkGroup = new frmEditWorkGroup();

            myEditWorkGroup.strType = tvType.SelectedNode.Tag.ToString();
            myEditWorkGroup.New();
            if (myEditWorkGroup.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
            myEditWorkGroup.Dispose();
        }
示例#2
0
        protected override void Edit()
        {
            if (gvBase.FocusedRowHandle < 0)
            {
                return;
            }
            base.Edit();
            DataRow          dr = gvBase.GetDataRow(gvBase.FocusedRowHandle);
            frmEditWorkGroup myEditWorkGroup = new frmEditWorkGroup();

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