示例#1
0
        public void ShowItemEdit(string strItemID)
        {
            frmEditItem myEditItem = new frmEditItem();

            myEditItem.Edit(strItemID);
            myEditItem.ShowDialog();
            myEditItem.Dispose();
        }
示例#2
0
        protected override void Edit()
        {
            if (gvBase.FocusedRowHandle < 0)
            {
                return;
            }
            base.Edit();
            DataRow     dr         = gvBase.GetDataRow(gvBase.FocusedRowHandle);
            frmEditItem myEditItem = new frmEditItem();

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