コード例 #1
0
        private GlobalOptions()
        {
            fChartOptions              = new TreeChartOptions();
            fEventFilters              = new StringList();
            fMRUFiles                  = new List <MRUFile>();
            fNameFilters               = new StringList();
            fResidenceFilters          = new StringList();
            fPedigreeOptions           = new PedigreeOptions();
            fProxy                     = new ProxyOptions();
            fRelations                 = new StringList();
            fAncestorsCircleOptions    = new AncestorsCircleOptions();
            fGeocoder                  = "Google";
            fRemovableMediaWarning     = true;
            fLoadRecentFiles           = true;
            fEmbeddedMediaPlayer       = true;
            fAllowMediaStoreReferences = false;
            fUseExtendedNotes          = false;

            fIndividualListColumns = IndividualListMan.CreateIndividualListColumns();
            fIndividualListColumns.ResetDefaults();

            fLanguages = new List <LangRecord>();
            fLastBases = new StringList();

            fAutosave         = false;
            fAutosaveInterval = 10;
        }
コード例 #2
0
        public void Assign(IOptions source)
        {
            AncestorsCircleOptions srcOptions = source as AncestorsCircleOptions;

            if (srcOptions == null)
            {
                return;
            }

            for (int i = 0; i < MAX_BRUSHES; i++)
            {
                BrushColor[i] = srcOptions.BrushColor[i];
            }

            ArcText           = srcOptions.ArcText;
            HideEmptySegments = srcOptions.HideEmptySegments;
        }