private void Button_Click(object sender, RoutedEventArgs e) { PA x = new PA(); x.SetPrimeiroElemento(int.Parse(PrimeiroElemento.Text)); x.Setrazao(int.Parse(razao.Text)); }
private void Iniciar(object sender, RoutedEventArgs e) { peA = new PA(int.Parse(txtPa.Text)); ListPA.Items.Add(peA.Iniciar()); ButtonIniciar.IsEnabled = false; fibo = new Fibonacci(); ListFibo.Items.Add(fibo.Iniciar()); }
private void Button_Click_3(object sender, RoutedEventArgs e) { PA pa = new PA(); ISequencia seq = pa; pa.SetElemento(int.Parse(PrimeiroTermotxt.Text)); pa.SetRazao(int.Parse(Razaotxt.Text)); Termotxt.Text = seq.Proximo().ToString(); }