public void ShowItemNew() { frmEditItem myEditItem = new frmEditItem(); myEditItem.New(); myEditItem.ShowDialog(); myEditItem.Dispose(); }
protected override void New() { base.New(); frmEditItem myEditItem = new frmEditItem(); myEditItem.strType = tvType.SelectedNode.Tag.ToString(); myEditItem.New(); if (myEditItem.ShowDialog() == DialogResult.OK) { BindData(); } myEditItem.Dispose(); }