Ejemplo n.º 1
0
 protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     DiSetup.AdminApp();
     DiHelper.Register<INavigationPresenter, WpfNavigationPresenter>(Lifetime.Singleton);
     DiSetup.Initialize();
 }
Ejemplo n.º 2
0
        public FilesCalculatorViewModel()
        {
            DiSetup.Initialize();

            _fileDialogConfigurer = DiSetup.Container.Resolve <IFileDialogConfigurer>();

            FilesInfo = new List <FileInformation>();

            _calculatorService = DiSetup.Container.Resolve <ICalculatorService>();
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            DiSetup.ConsoleApp();
            DiSetup.Initialize();

            initMenu();

            while (!isQuitting)
            {
                renderMenu();
                ConsoleKeyInfo choice = Console.ReadKey(true);
                if (menuEntries.Keys.Any(x => x.Equals(choice)))
                {
                    menuEntries[choice].Execute();
                }
            }
        }
Ejemplo n.º 4
0
 public Startup(IConfiguration configuration)
 {
     this.Configuration = configuration;
     DiSetup.PermissionServer();
     DiSetup.Initialize();
 }
Ejemplo n.º 5
0
 public Startup(IConfiguration configuration)
 {
     this.Configuration = configuration;
     DiSetup.ClientServer();
     DiSetup.Initialize();
 }