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); } } }
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); } }
private void Button_Click(object sender, RoutedEventArgs e) { int i = Int32.Parse(textBox1.Text); ViewModel.in_ou[i, 1] = Int32.Parse(textBox2.Text); ViewModel.in_ou[i, 2] = Int32.Parse(textBox3.Text); ViewModel.in_ou[i, 3] = Int32.Parse(textBox4.Text); ViewModel.in_ou[i, 4] = Int32.Parse(textBox5.Text); ViewModel.z_ou[i, 0] = Int32.Parse(Ri.Text); ViewModel.z_ou[i, 1] = (float)Double.Parse(R0.Text); ViewModel.z_ou[i, 2] = Int32.Parse(u.Text); ViewModel.z_ou[i, 3] = Int32.Parse(ft.Text); i++; textBox1.Text = i.ToString(); if (i <= ViewModel.NEU) { textBox2.Text = "0"; textBox3.Text = "0"; textBox4.Text = "0"; textBox5.Text = "0"; Ri.Text = "0"; R0.Text = "0"; u.Text = "0"; ft.Text = "0"; textBox2.Focus(); } else { Page4 p4 = new Page4(frame); frame.Navigate(p4); } }