Ejemplo n.º 1
0
 public void CreateProfile(string profileName)
 {
     if (ConfigManager.CreateProfile(profileName))
     {
         Properties.Settings.Default.CurrentProfile = profileName;
         Properties.Settings.Default.Save();
         ConfigManager.MainThread.MainWindowOverlayFrame.Content = null;
     }
     else
     {
         CreateProfileText.SetResourceReference(TextBlock.TextProperty, "NewProfile_CreateProfileText_Error");
         CreateProfileText.Foreground = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Red);
     }
 }
 public void CreateProfile(string profileName)
 {
     if (LauncherModel.Default.Config.Profile_Add(profileName))
     {
         Properties.LauncherSettings.Default.CurrentProfile = profileName;
         Properties.LauncherSettings.Default.Save();
         ViewModels.LauncherModel.Default.SetOverlayFrame(null);
     }
     else
     {
         CreateProfileText.SetResourceReference(TextBlock.TextProperty, "NewProfile_CreateProfileText_Error");
         CreateProfileText.Foreground = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Red);
     }
 }