Esempio n. 1
0
        public static IDomain Create([NotNull] IDomain domain)
        {
            if (domain is null)
            {
                throw new ArgumentNullException(nameof(domain));
            }

            CurrentDomain.ThrowIfAlreadyInitialized();
            CurrentDomain.Current = domain;
            return(Current);
        }
Esempio n. 2
0
 public static IDomain Create <TApp>(String name, GUIType type) where TApp : Application, new()
 {
     CurrentDomain.ThrowIfAlreadyInitialized();
     return(Create <TApp>(new AppData(name, AppVersion.Default), type));
 }
Esempio n. 3
0
 public static IDomain Create(IAppData data)
 {
     CurrentDomain.ThrowIfAlreadyInitialized();
     return(Create(new InternalDomain(data)));
 }
Esempio n. 4
0
 public static IDomain Create(String name)
 {
     CurrentDomain.ThrowIfAlreadyInitialized();
     return(Create(new AppData(name, AppVersion.Default)));
 }
Esempio n. 5
0
 public static IDomain Create <TApp>(TApp app, IAppData data, GUIType type) where TApp : Application, new()
 {
     CurrentDomain.ThrowIfAlreadyInitialized();
     return(Create(data).Initialize(app, type));
 }