Exemple #1
0
 /// <summary>
 /// Returns the one DemoApplicationContext.
 /// </summary>
 public static FileAnalysisApplicationContext GetContext()
 {
     if (context == null)
     {
         context = new FileAnalysisApplicationContext();
     }
     return(context);
 }
Exemple #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Get the application context and run one form inside it
            var context = FileAnalysisApplicationContext.GetContext();
            context.RunNew();
            Application.Run(context);
        }
 /// <summary>
 /// Opens a new Analysis window.
 /// </summary>
 public void OpenNew()
 {
     FileAnalysisApplicationContext.GetContext().RunNew();
 }
Exemple #4
0
 /// <summary>
 /// Handles the Click event of the newItem control.
 /// </summary>
 private void NewItem_Click(object sender, EventArgs e)
 {
     FileAnalysisApplicationContext.GetContext().RunNew();
 }