private void buttonMakeNewSalad_Click(object sender, EventArgs e) { FormWorkWithSalad formWorkWithSalad = new FormWorkWithSalad(textBoxNameSalad.Text); this.Visible = false; formWorkWithSalad.ShowDialog(); this.Visible = true; }
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; } }