Example #1
0
        private void NexPage()
        {
            ViewModel.listR = listR;
            ViewModel.listC = listC;
            ViewModel.listL = listL;

            SetParForBackButton();

            if (ViewModel.NEU > 0)
            {
                EU p4 = new EU(frame);
                frame.Navigate(p4);
            }
            else if (ViewModel.NJU > 0)
            {
                JU p4 = new JU(frame);
                frame.Navigate(p4);
            }
            else if (ViewModel.NTRI > 0)
            {
                TRI p4 = new TRI(frame);
                frame.Navigate(p4);
            }
            else if (ViewModel.NOU > 0)
            {
                OU p4 = new OU(frame);
                frame.Navigate(p4);
            }
            else
            {
                Page4 p4 = new Page4(frame);
                frame.Navigate(p4);
            }
        }
Example #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int i = Int32.Parse(textBox1.Text);

            ViewModel.in_tri[i, 0] = Int32.Parse(textBox2.Text);
            ViewModel.in_tri[i, 1] = Int32.Parse(textBox3.Text);
            ViewModel.in_tri[i, 2] = Int32.Parse(textBox6.Text);
            ViewModel.in_tri[i, 3] = Int32.Parse(textBox5.Text);
            ViewModel.z_tri[i]     = Int32.Parse(textBox4.Text);

            i++;
            textBox1.Text = i.ToString();
            if (i <= ViewModel.NTRI)
            {
                textBox2.Text = "0";
                textBox3.Text = "0";
                textBox4.Text = "0";
                textBox5.Text = "0";
                textBox6.Text = "0";
                textBox2.Focus();
            }
            else
            {
                if (ViewModel.NOU > 0)
                {
                    OU p4 = new OU(frame);
                    frame.Navigate(p4);
                }
                else
                {
                    Page4 p4 = new Page4(frame);
                    frame.Navigate(p4);
                }
            }
        }