Exemplo n.º 1
0
 public ProjectEnhancementsModuleViewModel(ShellModule shellModule, IClientResourceService clientResourceService,
                                           List <ProjectCategoryItem> projectCategories, ProjectOptions options) :
     base(shellModule, clientResourceService)
 {
     ProjectCategories = projectCategories;
     ProjectOptions    = options;
 }
Exemplo n.º 2
0
 public ElectronService(DialogModule dialogModule, MainWindowModule mainWindowModule, ClipboardModule clipBoardModule, AppModule appModule,
                        ShellModule shellModule, MenuModule menuModule)
 {
     Menu       = menuModule;
     Dialog     = dialogModule;
     ClipBoard  = clipBoardModule;
     MainWindow = mainWindowModule;
     App        = appModule;
     Shell      = shellModule;
 }
Exemplo n.º 3
0
        public ActionResult Index(ShellModule module, string controller)
        {
            Validator.ValidateArgNotNull("module", module);
            Validator.ValidateArgNotNull("controller", controller);

            var view      = _viewManager.GetView(module, controller);
            var viewModel = _bootstrapper.CreateViewModel(view.Name, ControllerContext, module.Name);

            return(View(_bootstrapper.BootstrapperViewName, viewModel));
        }
Exemplo n.º 4
0
        public Startup(IHostingEnvironment env)
        {
            var simpleIdServerModule = new SimpleIdentityServerHostModule();
            var shellModule          = new ShellModule();
            var loginPasswordModule  = new LoginPasswordModule();
            var smsModule            = new SmsModule();
            var userManagementModule = new UserManagementModule();

            simpleIdServerModule.Init(null);
            shellModule.Init(null);
            loginPasswordModule.Init(new Dictionary <string, string>
            {
                { "IsEditCredentialEnabled", "true" }
            });
            smsModule.Init(new Dictionary <string, string>
            {
                { "IsSelfProvisioningEnabled", "true" }
            });
            userManagementModule.Init(new Dictionary <string, string>
            {
                { "CanUpdateTwoFactorAuthentication", "true" }
            });
        }
 public AdvancedReviewsModuleViewModel(ShellModule shellModule, IClientResourceService clientResourceService, ExternalReviewOptions options) :
     base(shellModule, clientResourceService)
 {
     Options = options;
 }
 public TemplatesModuleViewModel(ShellModule module)
     : base(module, ServiceLocator.Current.GetInstance <IClientResourceService>())
 {
 }
 public FormsSamplesModuleViewModel(ShellModule shellModule, IClientResourceService clientResourceService)
     : base(shellModule, clientResourceService)
 {
     _clientResourcePath = shellModule.ClientResourcePath;
 }
Exemplo n.º 8
0
 public void Setup()
 {
     _sut         = new ShellModule();
     _sut.Modules = Program.CreateModules();
 }
Exemplo n.º 9
0
 public ShellFeature(ShellModule module)
 {
     Id       = module.Id;
     ModuleId = module.ModuleId;
     Version  = module.Version;
 }
Exemplo n.º 10
0
 public void Setup()
 {
     _sut         = new ShellModule();
     _sut.Modules = Program.ModulesWithState;
 }
 public BlockEnhancementsModuleViewModel(ShellModule shellModule, IClientResourceService clientResourceService, BlockEnhancementsOptions options) :
     base(shellModule, clientResourceService)
 {
     Options = options;
 }
Exemplo n.º 12
0
 public virtual void SetUp()
 {
     _containerMock = new Mock <ITypeRegistry>();
     _hostModule    = new ShellModule(_containerMock.Object);
 }
 public ContentInspectorModelViewModel(ShellModule module, IClientResourceService clientResourceService)
     : base(module, clientResourceService)
 {
 }
Exemplo n.º 14
0
 public virtual void SetUp()
 {
     _containerMock = new Mock<ITypeRegistry>();
     _hostModule = new ShellModule(_containerMock.Object);
 }
Exemplo n.º 15
0
        internal bool?Init(string[] args)  // initalizes the shell
        {
            ShellCore   = new ShellCore();
            ShellUI     = new ShellUI();
            ShellModule = new ShellModule();
            ShellCore.InitShellCore();
            ShellCore.CheckCompatibility();
            ShellCore.ElmInitExceptionManager();
            ShellCore.ShlWriteLog("Test.txt", "test.");
            ShellUI.InitShellUI();
            ShellModule.InitShellModule(ShellCore);
            ShellTask ShlTask = ShellCore.InitTask(new string[0], "task 1", 400, 150);

            ShlTask.Run();
            ShellTask ShlTask2 = ShellCore.InitTask(new string[0], "task 3", 360, 200);

            ShlTask2.Run();

            Console.Clear(); // so we can do stuff


            ShellCore.ShlHandleCmdArguments(args); // universal arguments (config - user name...)
            // SHELL MAIN ARGUMENTS
            string arg2 = "";

            if (args.Length > 0)
            {
                for (int i = 0; i < args.Length; i++)
                {
                    string thearg = args[i];
                    if (args.Length - i > 0)
                    {
                        arg2 = args[i + 1];
                    }
                    switch (thearg)
                    {
                    default:
                        ShellUI.ShXML.XmlParseScript(args[0]);
                        Console.WriteLine("Script has completed. Press enter to exit.");
                        Console.ReadKey();
                        ShellCore.Exit(0);
                        return(null);

                    case "installmodule":
                        ShellModule.InstallModule(false, arg2);
                        Console.WriteLine("Module successfully installed. Press any key to exit Shell.");
                        Console.ReadKey();
                        return(true);
                    }
                }
            }

            if (ShellCore == null || ShellUI == null)
            {
                return(null);
            }

            Console.WriteLine("Welcome to Shell\n");
            Console.WriteLine("Shell Embedded GUI Platform, version 8.0 alpha\n");

            Console.WriteLine("DLL Versions:");

            FileVersionInfo shellcore_ver   = ShellCore.GetVersion();
            FileVersionInfo shellui_ver     = ShellUI.GetVersion();
            FileVersionInfo shellmodule_ver = ShellModule.GetVersion();

            ShellCore.ShlSetWindowTitle($"Shell - core ver {shellcore_ver.FileMajorPart}.{shellcore_ver.FileMinorPart}.{shellcore_ver.FileBuildPart}.{shellcore_ver.FilePrivatePart}.");

            Console.WriteLine($"ShellCore Version: {shellcore_ver.FileMajorPart}.{shellcore_ver.FileMinorPart}.{shellcore_ver.FileBuildPart}.{shellcore_ver.FilePrivatePart}");
            Console.WriteLine($"ShellUI Version: {shellui_ver.FileMajorPart}.{shellui_ver.FileMinorPart}.{shellui_ver.FileBuildPart}.{shellui_ver.FilePrivatePart}\n");
            Console.WriteLine($"ShellModule Version: {shellmodule_ver.FileMajorPart}.{shellmodule_ver.FileMinorPart}.{shellmodule_ver.FileBuildPart}.{shellmodule_ver.FilePrivatePart}\n");

            ShellUI.ShXML.XmlParseScript("Whatsyourname.xml");

            Console.WriteLine("DEBUG: Variables created");

            foreach (ShxmlVariable ShxmlVar in ShellUI.ShXML.Varlist)
            {
                switch (ShxmlVar.Type)
                {
                case 0:
                    Console.WriteLine($"Variable: Name = {ShxmlVar.Name}. Value = {ShxmlVar.varint}. Type = Int.");
                    continue;

                case 1:
                    Console.WriteLine($"Variable: Name = {ShxmlVar.Name}. Value = {ShxmlVar.varstring}. Type = String.");
                    continue;

                case 2:
                    Console.WriteLine($"Variable: Name = {ShxmlVar.Name}. Value = {ShxmlVar.varchar}. Type = Char.");
                    continue;

                case 3:
                    Console.WriteLine($"Variable: Name = {ShxmlVar.Name}. Value = {ShxmlVar.vardouble}. Type = Double.");
                    continue;

                case 4:
                    Console.WriteLine($"Variable: Name = {ShxmlVar.Name}. Value = {ShxmlVar.varfloat}. Type = Float.");
                    continue;

                case 5:
                    Console.WriteLine($"Variable: Name = {ShxmlVar.Name}. Value = {ShxmlVar.varbool}. Type = Boolean.");
                    continue;
                }
            }

            Console.ReadKey();
            return(true);
        }
Exemplo n.º 16
0
 public MediaDownloadModuleViewModel(ShellModule shellModule, IClientResourceService clientResourceService) :
     base(shellModule, clientResourceService)
 {
     ControllerUrl = Paths.ToResource("advanced-cms-media-download",
                                      $"FolderDownload/{nameof(FolderDownloadController.Index)}");
 }