private void button1_Click(object sender, EventArgs e) { var com = new BasicComputer(); com.Display.WriteLine("Hello, World!"); this.computers.Add(com); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var computer = new BasicComputer(); Application.Run(); }