예제 #1
0
        // Function uses the FibonacciTextReader class to generate a Fibonacci sequence of 100
        private void loadFibonacciNumbersfirst100ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            textBox1.Clear();
            FibonacciTextReader ftr = new FibonacciTextReader(100);

            textBox1.AppendText(ftr.ReadToEnd());
        }
예제 #2
0
        /// <summary>
        /// button layout for the first 50 fib numbers. Generates and writes all of them to info
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button2_Click(object sender, EventArgs e)
        {
            FibonacciTextReader FibReader = new FibonacciTextReader(50);

            LoadText(FibReader);
        }
        private void fib100_Click(object sender, EventArgs e)
        {
            FibonacciTextReader f100 = new FibonacciTextReader(100);

            LoadText(f100);
        }
        private void fib50_Click(object sender, EventArgs e)
        {
            FibonacciTextReader f50 = new FibonacciTextReader(50);

            LoadText(f50);
        }