Ejemplo n.º 1
0
        public static void Main()
        {
            if (null == sm_theProjectService)
            {
                sm_theProjectService = new Altaxo.Main.ProjectService();

                sm_thePrintingService = new Altaxo.Main.PrintingService();

                // we construct the main document
                sm_theProjectService.CurrentOpenProject = new AltaxoDocument();

                MainController ctrl = new MainController();

                sm_theWorkbench = new AltaxoWorkbench(new MainView());

                ctrl.SetMenuToMainWindow();

                // InitializeMainController(ctrl);
            }
            try
            {
                System.Windows.Forms.Application.Run(Current.MainWindow);
            }
            catch (Exception e)
            {
                System.Windows.Forms.MessageBox.Show(e.ToString());
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the current printing service.
 /// </summary>
 /// <param name="printingservice">The instance of printing service to use in this application.</param>
 public static void SetPrintingService(Altaxo.Main.IPrintingService printingservice)
 {
     if (null == sm_thePrintingService)
     {
         sm_thePrintingService = printingservice;
     }
     else
     {
         throw new ApplicationException("The printing service can not be re-set to another value, only initialized for the first time!");
     }
 }
Ejemplo n.º 3
0
		/// <summary>
		/// Sets the current printing service.
		/// </summary>
		/// <param name="printingservice">The instance of printing service to use in this application.</param>
		public static void SetPrintingService(Altaxo.Main.IPrintingService printingservice)
		{
			if (null == sm_thePrintingService)
				sm_thePrintingService = printingservice;
			else
				throw new ApplicationException("The printing service can not be re-set to another value, only initialized for the first time!");
		}