internal MyApplicationContext()
		{
			Instance = this;
			traceToFile = new TraceToFileListener();
			Trace.Listeners.Add(traceToFile);
			Application.ApplicationExit += onApplicationExit;

			var loading = new frmLoading(load);
			if (loading.ShowDialog() == DialogResult.Cancel)
			{
				ExitThread();
				Fail = true;
				return;
			}

			foreach (Form f in forms)
				f.Show();

			vm.Start();
		}
        internal MyApplicationContext()
        {
            Instance    = this;
            traceToFile = new TraceToFileListener();
            Trace.Listeners.Add(traceToFile);
            Application.ApplicationExit += onApplicationExit;

            var loading = new frmLoading(load);

            if (loading.ShowDialog() == DialogResult.Cancel)
            {
                ExitThread();
                Fail = true;
                return;
            }

            foreach (Form f in forms)
            {
                f.Show();
            }

            vm.Start();
        }