Exemplo n.º 1
0
 private void ContinueB_Click(object sender, RoutedEventArgs e)
 {
     if (game.IsMapInitiated && game.IsEndInitiated)
     {
         Window2 a = new Window2();
         a.Activate();
         a.Visibility = Visibility.Visible;
         this.Close();
     }
 }
Exemplo n.º 2
0
        private void addContainerButton_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new Window2();

            if (dialog.ShowDialog() == true)
            {
                _context.Database.ExecuteSqlCommand("INSERT INTO dbo.Containers (ContainerName) VALUES ('" + dialog.ResponseText + "');");
                RefreshComboBox();
                ContainerDropdown.SelectedIndex = ContainerDropdown.Items.Count - 1;
            }
        }
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     Window2 obj=new Window2();
     obj.Show();
 }