Beispiel #1
0
        public void ShowItemNew()
        {
            frmEditItem myEditItem = new frmEditItem();

            myEditItem.New();
            myEditItem.ShowDialog();
            myEditItem.Dispose();
        }
Beispiel #2
0
        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();
        }