コード例 #1
0
        private void btnAddToTab_Click(object sender, EventArgs e)
        {
            var frmProductEdit = new FrmProductEdit {
                DbLinks = this.DbLinks
            };

            this.ShowFormInMainTab(frmProductEdit, "frmProductEdit", btnAdd.Image);
            frmProductEdit.OnFormClosedRefreash += new FormClosedRefreashEventHandler(OnFormClosedRefreash);
        }
コード例 #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            var frmProductEdit = new FrmProductEdit {
                DbLinks = this.DbLinks
            };

            if (frmProductEdit.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
            {
                this.Search();
            }
        }
コード例 #3
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            var frmProductEdit = new FrmProductEdit(this.EntityId)
            {
                DbLinks = this.DbLinks
            };

            if (frmProductEdit.ShowDialog(this) == DialogResult.OK)
            {
                this.Search();
            }
        }