Exemplo n.º 1
0
        private void mainWindow_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            if (IsSettingWindowSize || IsLoaded == false)
            {
                return;
            }

            string newSize = $"{this.ActualWidth},{this.ActualHeight}";

            AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.CustomWindowSize, newSize);
        }
Exemplo n.º 2
0
 private void UpdateAppSettingsWithSelectedCategories()
 {
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.AssetStoreDecksChecked, DisplayDecks.ToString());
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.AssetStoreGriptapesChecked, DisplayGriptapes.ToString());
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.AssetStoreHatsChecked, DisplayHats.ToString());
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.AssetStoreMapsChecked, DisplayMaps.ToString());
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.AssetStorePantsChecked, DisplayPants.ToString());
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.AssetStoreShirtsChecked, DisplayShirts.ToString());
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.AssetStoreShoesChecked, DisplayShoes.ToString());
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.AssetStoreTrucksChecked, DisplayTrucks.ToString());
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.AssetStoreWheelsChecked, DisplayWheels.ToString());
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.AssetStoreMeshesChecked, DisplayMeshes.ToString());
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.AssetStoreCharactersChecked, DisplayCharacters.ToString());
 }
Exemplo n.º 3
0
        internal void BrowseForProject()
        {
            UnwatchProject();

            using (var projectFileBrowser = new OpenFileDialog())
            {
                projectFileBrowser.Filter = "Unreal Engine Projects (*.uproject)|*.uproject";
                projectFileBrowser.Title  = "Select .uproject File";
                if (projectFileBrowser.ShowDialog() == DialogResult.OK)
                {
                    PathToProject = projectFileBrowser.FileName;
                    AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.ProjectWatcherPath, PathToProject);
                }
            }

            StatusText = "Not watching project.";
        }
Exemplo n.º 4
0
 private void mainWindow_StateChanged(object sender, EventArgs e)
 {
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.WindowState, this.WindowState.ToString());
 }
Exemplo n.º 5
0
 public void SetPathToCredentialsJson(string fileName)
 {
     PathToCredentialsFile = fileName;
     AppSettingsUtil.AddOrUpdateAppSettings(SettingKey.PathToCredentialsFile, PathToCredentialsFile);
 }