예제 #1
0
        private void InitializeTabLaunch()
        {
            try
            {
                SelectedRenderApiParam = RenderApiParams.First(x => x.Key == RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryParamsList, RegistrySaver.RegParamsRenderApiName));
            }
            catch (Exception)
            {
                SelectedRenderApiParam = RenderApiParams.SingleOrDefault(x => x.Key == "DirectX 11");
            }

            try
            {
                SelectedRenderModeParam = RenderModeParams.First(x => x.Key == RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryParamsList, RegistrySaver.RegParamsRenderModeName));
            }
            catch (Exception)
            {
                SelectedRenderApiParam = RenderModeParams.SingleOrDefault(x => x.Key == "Mono");
            }

            CustomCommonParams   = RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryParamsList, RegistrySaver.RegParamsAdditionalParamsName);
            IsUseAllCores        = RegistrySaver.ReadBoolValue(RegistrySaver.RegCategoryParamsList, RegistrySaver.RegParamsIsAllCoresName);
            IsNotextureStreaming = RegistrySaver.ReadBoolValue(RegistrySaver.RegCategoryParamsList, RegistrySaver.RegParamsIsNoTexStreamingName);

            Applications = RegistrySaver.ReadStringsFromRegistry(RegistrySaver.RegCategoryAppList);
            SetSelectedApp();

            Configs = RegistrySaver.ReadStringsFromRegistry(RegistrySaver.RegCategoryConfigList);
            SetSelectedConfig();
        }
예제 #2
0
 //Reloading all config lists
 private void InitializeConfigLists()
 {
     Applications = RegistrySaver.ReadStringsFromRegistry(RegistrySaver.RegAppList);
     SetSelectedApp();
     AppLogger.Add("Applications loaded successfully");
     Configs = RegistrySaver.ReadStringsFromRegistry(RegistrySaver.RegConfigList);
     SetSelectedConfig();
     AppLogger.Add("Configs loaded successfully");
     AppLogger.Add("List of Active nodes loaded successfully");
 }
예제 #3
0
        //Reloading all config lists
        private void InitConfigLists()
        {
            applications = RegistrySaver.ReadStringsFromRegistry(RegistrySaver.appList);
            AppLogger.Add("Applications loaded successfully");
            configs = RegistrySaver.ReadStringsFromRegistry(RegistrySaver.configList);
            SetSelectedConfig();
            AppLogger.Add("Configs loaded successfully");
            AppLogger.Add("List of Active nodes loaded successfully");

            try
            {
                selectedCamera = cameras.First(x => x == RegistrySaver.ReadStringValue(RegistrySaver.paramsList, RegistrySaver.curCamera));
            }
            catch (Exception)
            {
                selectedCamera = cameras.SingleOrDefault(x => x == "camera_dynamic");
            }
        }
        private void InitializeEvents()
        {
            List <string> SavedEvents = RegistrySaver.ReadStringsFromRegistry(RegistrySaver.RegCategoryClusterEvents);

            foreach (string SavedEventStr in SavedEvents)
            {
                ClusterEvent RestoredEvent = new ClusterEvent();
                RestoredEvent.DeserializeFromString(SavedEventStr);
                ClusterEvents.Add(RestoredEvent);
            }

            ctrlListClusterEvents.ItemsSource = ClusterEvents;

            CollectionView view = (CollectionView)CollectionViewSource.GetDefaultView(ctrlListClusterEvents.ItemsSource);

            view.SortDescriptions.Add(new SortDescription("Category", ListSortDirection.Ascending));
            view.SortDescriptions.Add(new SortDescription("Type", ListSortDirection.Ascending));
            view.SortDescriptions.Add(new SortDescription("Name", ListSortDirection.Ascending));
        }