Ejemplo n.º 1
0
        public SettingsEditor()
        {
            InitializeComponent();

            //Get app version
            Console.WriteLine("Retrieving project version number");
            System.Reflection.Assembly         assembly = System.Reflection.Assembly.GetExecutingAssembly();
            System.Diagnostics.FileVersionInfo fvi      = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
            _version = fvi.FileVersion;
            Console.WriteLine("Done.\nRetrieving Settings");

            if (FileHandle._settings == null)
            {
                FileHandle.readSettings();
            }

            updateSettings();
            Console.WriteLine("Done.");
        }
Ejemplo n.º 2
0
 private void resetSettings(object sender, RoutedEventArgs e)
 {
     FileHandle._settings = FileHandle.getDefaultSettings();
     updateSettings();
 }
Ejemplo n.º 3
0
 private void discardSettings(object sender, RoutedEventArgs e)
 {
     FileHandle.readSettings();
     updateSettings();
 }
Ejemplo n.º 4
0
 private void loadGroups(object sender, RoutedEventArgs e)
 {
     FileHandle.readChamps();
     updateGroupList();
 }
Ejemplo n.º 5
0
 private void saveGroups(object sender, RoutedEventArgs e)
 {
     FileHandle.writeChamps();
 }