コード例 #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();
     }
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: Adrcpp/Mediametrie
        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;
            }
        }
コード例 #3
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     Window2 obj=new Window2();
     obj.Show();
 }