static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FormCounterApplicationContext appContext = FormCounterApplicationContext.GetAppContext(); appContext.RunForm(new SpreadsheetGUI()); Application.Run(appContext); }
/// <summary> /// Opens a new window with a blank spreadsheet. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void NewButton_Click(object sender, EventArgs e) { FormCounterApplicationContext appContext = FormCounterApplicationContext.GetAppContext(); appContext.RunForm(new SpreadsheetGUI()); }