예제 #1
0
        private void buttonMakeNewSalad_Click(object sender, EventArgs e)
        {
            FormWorkWithSalad formWorkWithSalad = new FormWorkWithSalad(textBoxNameSalad.Text);

            this.Visible = false;
            formWorkWithSalad.ShowDialog();
            this.Visible = true;
        }
예제 #2
0
        private void buttonChooseCreatedBeforeSalads_Click(object sender, EventArgs e)
        {
            if (openFileDialogForChooseSalad.ShowDialog() == DialogResult.OK)
            {
                string nameSalad = openFileDialogForChooseSalad.FileName;
                Salad  salad     = SavingData.DeSerializationSalad(nameSalad);

                FormWorkWithSalad formWorkWithSalad = new FormWorkWithSalad(salad);
                this.Visible = false;
                formWorkWithSalad.ShowDialog();
                this.Visible = true;
            }
        }