private void Button_Click(object sender, RoutedEventArgs e) { lista1.Items.Clear(); lista.Items.Clear(); x = new Fibonacci(); y = new PA(int.Parse(a1.Text), int.Parse(r.Text)); }
private void Button_Click_1(object sender, RoutedEventArgs e) { Fibonacci fib = new Fibonacci(); ISequencia seq = fib; Fibtxt.Text = seq.Proximo().ToString(); }
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(); }