Пример #1
0
        public GpoSettings Copy()
        {
            GpoSettings copy = new GpoSettings();

            copy.ApplicationSettings              = ApplicationSettings.Copy();
            copy.AllowUserDefinedProfiles         = AllowUserDefinedProfiles;
            copy.DisableAccountsTab               = DisableAccountsTab;
            copy.DisableApplicationSettings       = DisableApplicationSettings;
            copy.DisableDebugTab                  = DisableDebugTab;
            copy.DisableHistory                   = DisableHistory;
            copy.DisableLicenseExpirationReminder = DisableLicenseExpirationReminder;
            copy.DisablePrinterTab                = DisablePrinterTab;
            copy.DisableProfileManagement         = DisableProfileManagement;
            copy.DisableRssFeed                   = DisableRssFeed;
            copy.DisableTips            = DisableTips;
            copy.DisableTitleTab        = DisableTitleTab;
            copy.DisableUsageStatistics = DisableUsageStatistics;
            copy.HideLicenseTab         = HideLicenseTab;
            copy.HidePdfArchitectInfo   = HidePdfArchitectInfo;
            copy.LoadSharedAppSettings  = LoadSharedAppSettings;
            copy.LoadSharedProfiles     = LoadSharedProfiles;
            return(copy);
        }
Пример #2
0
        public override bool Equals(object o)
        {
            if (!(o is GpoSettings))
            {
                return(false);
            }
            GpoSettings v = o as GpoSettings;

            if (!ApplicationSettings.Equals(v.ApplicationSettings))
            {
                return(false);
            }
            if (!AllowUserDefinedProfiles.Equals(v.AllowUserDefinedProfiles))
            {
                return(false);
            }
            if (!DisableAccountsTab.Equals(v.DisableAccountsTab))
            {
                return(false);
            }
            if (!DisableApplicationSettings.Equals(v.DisableApplicationSettings))
            {
                return(false);
            }
            if (!DisableDebugTab.Equals(v.DisableDebugTab))
            {
                return(false);
            }
            if (!DisableHistory.Equals(v.DisableHistory))
            {
                return(false);
            }
            if (!DisableLicenseExpirationReminder.Equals(v.DisableLicenseExpirationReminder))
            {
                return(false);
            }
            if (!DisablePrinterTab.Equals(v.DisablePrinterTab))
            {
                return(false);
            }
            if (!DisableProfileManagement.Equals(v.DisableProfileManagement))
            {
                return(false);
            }
            if (!DisableRssFeed.Equals(v.DisableRssFeed))
            {
                return(false);
            }
            if (!DisableTips.Equals(v.DisableTips))
            {
                return(false);
            }
            if (!DisableTitleTab.Equals(v.DisableTitleTab))
            {
                return(false);
            }
            if (!DisableUsageStatistics.Equals(v.DisableUsageStatistics))
            {
                return(false);
            }
            if (!HideLicenseTab.Equals(v.HideLicenseTab))
            {
                return(false);
            }
            if (!HidePdfArchitectInfo.Equals(v.HidePdfArchitectInfo))
            {
                return(false);
            }
            if (!LoadSharedAppSettings.Equals(v.LoadSharedAppSettings))
            {
                return(false);
            }
            if (!LoadSharedProfiles.Equals(v.LoadSharedProfiles))
            {
                return(false);
            }
            return(true);
        }
Пример #3
0
        public void ReplaceWith(GpoSettings source)
        {
            ApplicationSettings.ReplaceWith(source.ApplicationSettings);
            if (AllowUserDefinedProfiles != source.AllowUserDefinedProfiles)
            {
                AllowUserDefinedProfiles = source.AllowUserDefinedProfiles;
            }

            if (DisableAccountsTab != source.DisableAccountsTab)
            {
                DisableAccountsTab = source.DisableAccountsTab;
            }

            if (DisableApplicationSettings != source.DisableApplicationSettings)
            {
                DisableApplicationSettings = source.DisableApplicationSettings;
            }

            if (DisableDebugTab != source.DisableDebugTab)
            {
                DisableDebugTab = source.DisableDebugTab;
            }

            if (DisableHistory != source.DisableHistory)
            {
                DisableHistory = source.DisableHistory;
            }

            if (DisableLicenseExpirationReminder != source.DisableLicenseExpirationReminder)
            {
                DisableLicenseExpirationReminder = source.DisableLicenseExpirationReminder;
            }

            if (DisablePrinterTab != source.DisablePrinterTab)
            {
                DisablePrinterTab = source.DisablePrinterTab;
            }

            if (DisableProfileManagement != source.DisableProfileManagement)
            {
                DisableProfileManagement = source.DisableProfileManagement;
            }

            if (DisableRssFeed != source.DisableRssFeed)
            {
                DisableRssFeed = source.DisableRssFeed;
            }

            if (DisableTips != source.DisableTips)
            {
                DisableTips = source.DisableTips;
            }

            if (DisableTitleTab != source.DisableTitleTab)
            {
                DisableTitleTab = source.DisableTitleTab;
            }

            if (DisableUsageStatistics != source.DisableUsageStatistics)
            {
                DisableUsageStatistics = source.DisableUsageStatistics;
            }

            if (HideLicenseTab != source.HideLicenseTab)
            {
                HideLicenseTab = source.HideLicenseTab;
            }

            if (HidePdfArchitectInfo != source.HidePdfArchitectInfo)
            {
                HidePdfArchitectInfo = source.HidePdfArchitectInfo;
            }

            if (LoadSharedAppSettings != source.LoadSharedAppSettings)
            {
                LoadSharedAppSettings = source.LoadSharedAppSettings;
            }

            if (LoadSharedProfiles != source.LoadSharedProfiles)
            {
                LoadSharedProfiles = source.LoadSharedProfiles;
            }
        }