/// <summary> /// Initialisiert eine neue Instanz der <see cref="CommonApplication" /> Klasse. /// </summary> /// <param name="doStartup"> /// The do startup. /// </param> /// <param name="service"> /// The service. /// </param> /// <param name="factory"> /// The factory. /// </param> protected CommonApplication(bool doStartup, [CanBeNull] ISplashService service, [NotNull] IUIControllerFactory factory) { Contract.Requires<ArgumentNullException>(factory != null, "factory"); Factory = factory; Current = this; _scheduler = new TaskScheduler(UiSynchronize.Synchronize); _splash = service ?? new NullSplash(); _doStartup = doStartup; SourceAssembly = new AssemblyName(Assembly.GetAssembly(GetType()).FullName).Name; }
/// <summary> /// Initializes a new instance of the <see cref="CommonApplicationContracts" /> class. /// Initialisiert eine neue Instanz der <see cref="CommonApplicationContracts" /> Klasse. /// Initializes a new instance of the <see cref="CommonApplicationContracts" /> class. /// </summary> /// <param name="doStartup"> /// The do startup. /// </param> /// <param name="service"> /// The service. /// </param> /// <param name="factory"> /// The factory. /// </param> public CommonApplicationContracts(bool doStartup, ISplashService service, IUIControllerFactory factory) : base(doStartup, service, factory) { }