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

            addStockform.ShowDialog();
            this.Close();
        }
        // button to go to add stock form and sends text entered in UPCcode text box
        private void AddStock_Button_Click(object sender, EventArgs e)
        {
            sendtext = UPCcode.Text;
            this.Hide();
            addStockfrm AddStockForm = new addStockfrm();

            AddStockForm.ShowDialog();
            this.Close();
        }