示例#1
0
        private void newProductMenuItem_Click(object sender, EventArgs e)
        {
            var newProductForm = new NewProduct();

            newProductForm.MdiParent = this;
            newProductForm.Show();
        }
示例#2
0
        private void newProductButton_Click(object sender, EventArgs e)
        {
            var newProductForm = new NewProduct();

            newProductForm.StartPosition = FormStartPosition.CenterScreen;
            newProductForm.Show();
            this.Close();
        }