private void Student_Click(object sender, RoutedEventArgs e) { Window4 win4 = new Window4(); win4.Owner = this; win4.ShowDialog(); }
private void Student_Click(object sender, RoutedEventArgs e) { if (counterr <= 3) { Window4 win4 = new Window4(); win4.Owner = this; win4.ShowDialog(); MessageBox.Show($"Спроба № {counterr}"); counterr++; } else { MessageBox.Show("Ви вже використали максимальну кільскість проходів"); } }
private void buttonTemplate_Click(object sender, RoutedEventArgs e) { Window4 window = new Window4(); window.ShowDialog(); }