コード例 #1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            CalculateWindow cw = new CalculateWindow();

            cw.Show();
            this.Close();
        }
コード例 #2
0
        private void button_Click_1(object sender, RoutedEventArgs e)
        {
            double[,] wagi = new double[3, 3];
            wagi[0, 0]     = Convert.ToDouble(textBox1.Text);
            wagi[0, 1]     = Convert.ToDouble(textBox2.Text);
            wagi[0, 2]     = Convert.ToDouble(textBox3.Text);
            wagi[1, 0]     = Convert.ToDouble(textBox4.Text);
            wagi[1, 1]     = Convert.ToDouble(textBox5.Text);
            wagi[1, 2]     = Convert.ToDouble(textBox6.Text);
            wagi[2, 0]     = Convert.ToDouble(textBox7.Text);
            wagi[2, 1]     = Convert.ToDouble(textBox8.Text);
            wagi[2, 2]     = Convert.ToDouble(textBox9.Text);

            CalculateWindow cw = new CalculateWindow(wagi);

            cw.Show();
            this.Close();
        }
コード例 #3
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            Random rand = new Random();

            double[,] weights = new double[3, 3];

            for (int i = 0; i < 3; i++)
            {
                for (int j = 0; j < 3; j++)
                {
                    weights[i, j] = rand.Next(-100, 100);
                }
            }

            CalculateWindow cw = new CalculateWindow(weights);

            cw.Show();
            this.Close();
        }