Exemplo 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);
        }
Exemplo 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));
 }
Exemplo n.º 3
0
 public static IDomain Create(IAppData data)
 {
     CurrentDomain.ThrowIfAlreadyInitialized();
     return(Create(new InternalDomain(data)));
 }
Exemplo n.º 4
0
 public static IDomain Create(String name)
 {
     CurrentDomain.ThrowIfAlreadyInitialized();
     return(Create(new AppData(name, AppVersion.Default)));
 }
Exemplo 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));
 }