private void DeleteProfile(object sender, ProfileEventHandlerArgs args) { if (string.IsNullOrWhiteSpace(args.ProfileName)) { return; } _profileManager.Delete(args.ProfileName); UpdateProfilesInView(); View.SelectedProfile = View.Profiles.FirstOrDefault(); }
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; }