Exemplo n.º 1
0
        private void itemsBtn_Click(object sender, EventArgs e)
        {
            StoreItemType Type     = controller.GetStoreType(int.Parse(IdText.Text));
            StoreItemForm userForm = new StoreItemForm(Type)
            {
                TopLevel = false
            };

            this.Controls.Clear();
            this.Controls.Add(userForm);
            userForm.Show();
        }
Exemplo n.º 2
0
        private void storeItemBtn_Click(object sender, EventArgs e)
        {
            StoreItemForm objForm = new StoreItemForm
            {
                TopLevel = false
            };

            this.Controls.Clear();
            this.Controls.Add(objForm);
            objForm.FormBorderStyle = FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }