Пример #1
0
        private void buttonAddProduct_Click(object sender, EventArgs e)
        {
            lableRange.Visible        = false;
            textBoxBeginRange.Visible = false;
            textBoxBeginRange.Text    = string.Empty;
            textBoxEndRange.Visible   = false;
            textBoxEndRange.Text      = string.Empty;

            isClickFind = false;

            buttonFindProducts.Enabled = true;

            formInformationAboutProduct formAddProduct = new formInformationAboutProduct();

            formAddProduct.Owner = this;
            this.Visible         = false;
            formAddProduct.ShowDialog();
            this.Visible = true;

            UpdateInfoBoxAboutProduct(salad.ProductSalad);
        }
Пример #2
0
        private void buttonSeeInfo_Click(object sender, EventArgs e)
        {
            lableRange.Visible        = false;
            textBoxBeginRange.Visible = false;
            textBoxBeginRange.Text    = string.Empty;
            textBoxEndRange.Visible   = false;
            textBoxEndRange.Text      = string.Empty;

            buttonFindProducts.Enabled = true;

            if (listBoxInfoAboutProducts.SelectedIndex >= 0 && listBoxInfoAboutProducts.SelectedIndex < listBoxInfoAboutProducts.Items.Count)
            {
                formInformationAboutProduct formInfoProduct = new formInformationAboutProduct(listBoxInfoAboutProducts.SelectedIndex);
                formInfoProduct.Owner = this;
                this.Visible          = false;
                formInfoProduct.ShowDialog();
                this.Visible = true;

                UpdateInfoBoxAboutProduct(salad.ProductSalad);
            }
        }