private void button_Copy1_Click(object sender, RoutedEventArgs e) { var win = new Window9(); win.Show(); this.Close(); }
private void button_Click_1(object sender, RoutedEventArgs e) { Window9 w = new Window9(); w.Show(); this.Close(); }
private void mdiz_Click(object sender, RoutedEventArgs e) { Window9 winTool = new Window9(); //Назначение текущего окна владельцем. winTool.Owner = this; //Отображение окна, принадлежащего окну-владельцу. winTool.Show(); this.Hide(); }
private void addButton_Click(object sender, RoutedEventArgs e) { try { String name = nameTextBox.Text; int netValue = Int32.Parse(netValueTextBox.Text); Meal newMeal = new Meal(name, netValue); Data.meals.Add(newMeal); MessageBox.Show("New meal added!"); HelperFunctions.serUsers(); var win = new Window9(); win.Show(); this.Close(); } catch { MessageBox.Show("Please enter correct data!"); } }
private void button4_Click(object sender, RoutedEventArgs e) { Window9 w = new Window9(); w.Show(); }