protected override void New() { base.New(); frmEditOutSupplier myEditOutSupplier = new frmEditOutSupplier(); myEditOutSupplier.strType = tvType.SelectedNode.Tag.ToString(); myEditOutSupplier.New(); if (myEditOutSupplier.ShowDialog() == DialogResult.OK) { BindData(); } myEditOutSupplier.Dispose(); }
protected override void Edit() { if (gvBase.FocusedRowHandle < 0) { return; } base.Edit(); DataRow dr = gvBase.GetDataRow(gvBase.FocusedRowHandle); frmEditOutSupplier myEditOutSupplier = new frmEditOutSupplier(); myEditOutSupplier.Edit(dr["F_ID"].ToString()); if (myEditOutSupplier.ShowDialog() == DialogResult.OK) { BindData(); } myEditOutSupplier.Dispose(); }