Пример #1
0
        private void mnuChangeItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmChangeMenuItem changeItem = new frmChangeMenuItem(this);

            changeItem.Show();
        }
        public frmChange(frmChangeMenuItem Parent, int id, String name, String category, String description, Decimal price)
        {
            parent = Parent;
            InitializeComponent();

            cmbCategories.DropDownStyle = ComboBoxStyle.DropDownList;
            txtItemID.Text          = id.ToString("0000");
            txtItemName.Text        = name;
            txtItemPrice.Text       = price.ToString("0.00");
            txtItemDescription.Text = description;

            selectCategory(category);
        }