Ejemplo n.º 1
0
        public static void HandleLaunch()
        {
            Commutes = CommuteStorage.Load();
            Settings = CommuteStorage.LoadSettings();

            if (Commutes.Count == 0)
            {
                Commutes.Add(new CommuteDefinition());
                Commutes[0].Name  = "untitled";
                Commutes[0].IsNew = true;
            }

            DataContextManager.SelectedCommute = Commutes[0];

            Settings.SettingsChanged += new EventHandler(_settings_SettingsChanged);
        }
Ejemplo n.º 2
0
 public static void Save()
 {
     CommuteStorage.Save();
 }