Пример #1
0
            public SaveEventArgs(RoamingProfile profile, RoamingProfile originalProfile, ProfileEditor.EditingMode mode)
            {
                if (profile == null) throw new ArgumentNullException("profile");

                this.profile = profile;
                this.originalProfile = originalProfile;
                this.commitMode = mode;
            }
Пример #2
0
        private void ProfileEditor_Save(object sender, ProfileEditor.SaveEventArgs e)
        {
            RoamingConfiguration configuration = RoamiePlugin.Singleton.RoamingContext.Configuration;

            ProfileCollection profiles = configuration.ProfileManager.Profiles;
            profiles.Add((CreatedProfile = e.Profile));

            configuration.Save();
            Close();
        }
Пример #3
0
        private void ProfileEditor_Save(object sender, ProfileEditor.SaveEventArgs e)
        {
            RoamingConfiguration configuration = RoamiePlugin.Singleton.RoamingContext.Configuration;
            ProfileCollection profiles = configuration.ProfileManager.Profiles;

            profiles.Remove(e.OriginalProfile);
            profiles.Add(e.Profile);

            ProfileChanged = true;            
            Close();
        }