Ejemplo n.º 1
0
 private void DeleteProfile(object sender, ProfileEventHandlerArgs args)
 {
     if (string.IsNullOrWhiteSpace(args.ProfileName))
     {
         return;
     }
     _profileManager.Delete(args.ProfileName);
     UpdateProfilesInView();
     View.SelectedProfile = View.Profiles.FirstOrDefault();
 }
Ejemplo n.º 2
0
 private void CreateNewProfile(object sender, ProfileEventHandlerArgs args)
 {
     if (string.IsNullOrWhiteSpace(args.ProfileName))
     {
         return;
     }
     _profileManager.Add(new DeploymentProfile {
         Name = args.ProfileName
     });
     UpdateProfilesInView();
     View.SelectedProfile = args.ProfileName;
 }