// if the user clicks on the "Load Fibonacci numbers (first 100)" option private void loadFibonacciNumbersfirst100ToolStripMenuItem_Click(object sender, EventArgs e) { // instantiate a new FibonacciTextReader object with 100 lines FibonacciTextReader firstHundred = new FibonacciTextReader(100); // load its text LoadText(firstHundred); }
// if the user clicks on the "Load Fibonacci numbers (first 50)" option private void loadFibonacciNumbersToolStripMenuItem_Click(object sender, EventArgs e) { // instantiate a new FibonacciTextReader object with 50 lines FibonacciTextReader firstFifty = new FibonacciTextReader(50); // load its text LoadText(firstFifty); }