Ejemplo n.º 1
0
 /// <summary>
 /// Returns the one DemoApplicationContext.
 /// </summary>
 public static SpreadsheetFormContext GetFormContext()
 {
     if (FormContext == null)
     {
         FormContext = new SpreadsheetFormContext();
     }
     return(FormContext);
 }
Ejemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Starting App Context and start the app inside it.
            SpreadsheetFormContext appContext = SpreadsheetFormContext.GetFormContext();

            appContext.RunForm(new SpreadsheetForm());

            Application.Run(appContext);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a new blank spreadsheet.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SpreadsheetFormContext.GetFormContext().RunForm(new SpreadsheetForm());
 }