Esempio n. 1
0
        private void RefreshStoreTypes(bool allowRef, bool allowArc, bool allowRel, MediaStoreType selectType)
        {
            fView.StoreType.Clear();

            if (allowRef)
            {
                fView.StoreType.AddItem(LangMan.LS(GKData.GKStoreTypes[(int)MediaStoreType.mstReference].Name),
                                        MediaStoreType.mstReference);
            }

            fView.StoreType.AddItem(LangMan.LS(GKData.GKStoreTypes[(int)MediaStoreType.mstStorage].Name),
                                    MediaStoreType.mstStorage);

            if (allowArc)
            {
                fView.StoreType.AddItem(LangMan.LS(GKData.GKStoreTypes[(int)MediaStoreType.mstArchive].Name),
                                        MediaStoreType.mstArchive);
            }

            if (allowRel)
            {
                fView.StoreType.AddItem(LangMan.LS(GKData.GKStoreTypes[(int)MediaStoreType.mstRelativeReference].Name),
                                        MediaStoreType.mstRelativeReference);
            }

            fView.StoreType.SetSelectedTag <MediaStoreType>(selectType);
        }
Esempio n. 2
0
        private bool AcceptChanges()
        {
            GEDCOMFileReferenceWithTitle fileRef = fMediaRec.FileReferences[0];

            if (fIsNew)
            {
                GKComboItem    item = (GKComboItem)cmbStoreType.SelectedValue;
                MediaStoreType gst  = (MediaStoreType)item.Tag;

                if ((gst == MediaStoreType.mstArchive || gst == MediaStoreType.mstStorage) && !fBase.Context.CheckBasePath())
                {
                    return(false);
                }

                bool result = fBase.Context.MediaSave(fileRef, txtFile.Text, gst);

                if (!result)
                {
                    return(false);
                }
            }

            fileRef.MediaType = (GEDCOMMediaType)cmbMediaType.SelectedIndex;
            fileRef.Title     = txtName.Text;

            ControlsRefresh();

            CommitChanges();
            fBase.NotifyRecord(fMediaRec, RecordAction.raEdit);

            return(true);
        }
Esempio n. 3
0
    public static void GetImage(string objName, string funName, MediaStoreType type = MediaStoreType.Images)
    {
        byte[]            image  = null;
        AndroidJavaClass  Intent = new AndroidJavaClass("android.content.Intent");
        AndroidJavaClass  Uri    = new AndroidJavaClass("android.net.Uri");
        AndroidJavaClass  media  = new AndroidJavaClass(string.Format("android.provider.MediaStore${0}$Media", type.ToString()));//    android.provider.MediaStore.Images.Media
        AndroidJavaObject intent = new AndroidJavaObject("android.content.Intent", Intent.GetStatic <string>("ACTION_PICK"), media.GetStatic <AndroidJavaObject>("EXTERNAL_CONTENT_URI"));

        AndroidCall.unityActivity.Call("startActivityForResult", intent, 1);

        RidkActivity listener = new RidkActivity();

        listener.onActivityResultDelegate = (requestCode, resultCode, Intentdata) =>
        {
            if (requestCode == 1 && resultCode == new AndroidJavaClass("android.app.Activity").GetStatic <int>("RESULT_OK") && Intentdata != null)
            {
                Debug.Log("选了图片开始返回路劲");
                var ImageUrl = Intentdata.Call <AndroidJavaObject>("getData");
                if (media == null)
                {
                    Debug.Log("媒体对象没有定义");
                }
                AndroidJavaObject c = unityActivity.Call <AndroidJavaObject>("getContentResolver").Call <AndroidJavaObject>("query", ImageUrl, null, null, null, null);
                Debug.Log("返回光标");
                var isMove      = c.Call <bool>("moveToFirst");
                var columnIndex = c.Call <int>("getColumnIndex", "_data");
                var imagePath   = c.Call <string>("getString", columnIndex);
                //      image = imagePath.Call<byte[]>("getBytes");
                new AndroidJavaClass("com.unity3d.player.UnityPlayer").CallStatic("UnitySendMessage", objName, funName, imagePath);
            }
        };
        AndroidCall.unityActivity.Call("AddUnityCallBack", listener);
    }
Esempio n. 4
0
        private void UpdateFileStore(bool isNew, MediaStoreType storeType)
        {
            fView.FileSelectButton.Enabled = isNew && (storeType != MediaStoreType.mstURL);

            fView.File.Enabled  = isNew && (storeType == MediaStoreType.mstURL);
            fView.File.ReadOnly = !fView.File.Enabled;

            fView.StoreType.Enabled = isNew;
        }
Esempio n. 5
0
        private GlobalOptions()
        {
            fTreeChartOptions                  = new TreeChartOptions();
            fEventFilters                      = new StringList();
            fMRUFiles                          = new List <MRUFile>();
            fNameFilters                       = new StringList();
            fResidenceFilters                  = new StringList();
            fPedigreeOptions                   = new PedigreeOptions();
            fProxy                             = new ProxyOptions();
            fRelations                         = new StringList();
            fCircleChartOptions                = new CircleChartOptions();
            fGeocoder                          = "Google";
            fRemovableMediaWarning             = true;
            fLoadRecentFiles                   = true;
            fEmbeddedMediaPlayer               = true;
            fAllowMediaStoreReferences         = false;
            fAllowMediaStoreRelativeReferences = true;
            fMediaStoreDefault                 = 0;
            fAllowDeleteMediaFileFromStgArc    = true;
            fAllowDeleteMediaFileFromRefs      = false;
            fDeleteMediaFileWithoutConfirm     = false;
            fUseExtendedNotes                  = false;

            fAutoCheckUpdates = true;
            fAutoSortChildren = true;
            fAutoSortSpouses  = false;
            fCheckTreeSize    = true;

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

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

            fAutosave         = false;
            fAutosaveInterval = 10;

            fListOptions = new ListOptionsCollection();
            fReadabilityHighlightRows = true;
            fShortKinshipForm         = false;
            fSurnameFirstInOrder      = true;

            fCharsetDetection          = false;
            fFirstCapitalLetterInNames = false;
            fGeoSearchCountry          = string.Empty;
        }
Esempio n. 6
0
        private void RefreshStoreTypes(bool allowRef, bool allowArc, MediaStoreType selectType)
        {
            cmbStoreType.Items.Clear();

            if (allowRef)
            {
                cmbStoreType.Items.Add(
                    new GKComboItem(LangMan.LS(GKData.GKStoreTypes[(int)MediaStoreType.mstReference].Name),
                                    MediaStoreType.mstReference));
            }

            cmbStoreType.Items.Add(
                new GKComboItem(LangMan.LS(GKData.GKStoreTypes[(int)MediaStoreType.mstStorage].Name),
                                MediaStoreType.mstStorage));

            if (allowArc)
            {
                cmbStoreType.Items.Add(
                    new GKComboItem(LangMan.LS(GKData.GKStoreTypes[(int)MediaStoreType.mstArchive].Name),
                                    MediaStoreType.mstArchive));
            }

            UIHelper.SelectComboItem(cmbStoreType, selectType, true);
        }
Esempio n. 7
0
        public override bool Accept()
        {
            try {
                GDMFileReferenceWithTitle fileRef = fMediaRec.FileReferences[0];

                if (fIsNew)
                {
                    MediaStoreType gst = fView.StoreType.GetSelectedTag <MediaStoreType>();

                    if ((gst == MediaStoreType.mstArchive || gst == MediaStoreType.mstStorage) && !fBase.Context.CheckBasePath())
                    {
                        return(false);
                    }

                    bool result = fBase.Context.MediaSave(fileRef, fView.File.Text, gst);

                    if (!result)
                    {
                        return(false);
                    }
                }

                fileRef.MediaType = (GDMMediaType)fView.MediaType.SelectedIndex;
                fileRef.Title     = fView.Name.Text;

                UpdateControls();

                fLocalUndoman.Commit();
                fBase.NotifyRecord(fMediaRec, RecordAction.raEdit);

                return(true);
            } catch (Exception ex) {
                Logger.LogWrite("MediaEditDlgController.Accept(): " + ex.Message);
                return(false);
            }
        }
Esempio n. 8
0
        public void SetLocale()
        {
            btnAccept.Text = LangMan.LS(LSID.LSID_DlgAccept);
            btnCancel.Text = LangMan.LS(LSID.LSID_DlgCancel);
            Title          = LangMan.LS(LSID.LSID_MIOptions);

            // Common
            pageCommon.Text = LangMan.LS(LSID.LSID_Common);

            grpInternet.Text      = LangMan.LS(LSID.LSID_Internet);
            chkUseProxy.Text      = LangMan.LS(LSID.LSID_ProxyUse);
            lblProxyServer.Text   = LangMan.LS(LSID.LSID_ProxyServer);
            lblProxyPort.Text     = LangMan.LS(LSID.LSID_ProxyPort);
            lblProxyLogin.Text    = LangMan.LS(LSID.LSID_ProxyLogin);
            lblProxyPassword.Text = LangMan.LS(LSID.LSID_Password);

            grpFileBackup.Text     = LangMan.LS(LSID.LSID_FileBackup);
            radFBNone.Text         = LangMan.LS(LSID.LSID_Not);
            radFBOnlyPrev.Text     = LangMan.LS(LSID.LSID_BackupOnlyPrev);
            radFBEachRevision.Text = LangMan.LS(LSID.LSID_BackupEachRevision);

            chkAutosave.Text = LangMan.LS(LSID.LSID_Autosave);
            lblMinutes.Text  = LangMan.LS(LSID.LSID_Minutes);
            lblBackupRevisionsMaxCount.Text = LangMan.LS(LSID.LSID_BackupRevisionsMaxCount);

            grpOther.Text             = LangMan.LS(LSID.LSID_Other);
            chkShowOnStart.Text       = LangMan.LS(LSID.LSID_StartupTips);
            chkLoadRecentFiles.Text   = LangMan.LS(LSID.LSID_LoadRecentFiles);
            chkAutoCheckUpdates.Text  = LangMan.LS(LSID.LSID_AutoCheckUpdates);
            chkCharsetDetection.Text  = LangMan.LS(LSID.LSID_CharsetDetection);
            chkDialogClosingWarn.Text = LangMan.LS(LSID.LSID_WarnForClosingDialog);

            lblLanguage.Text         = LangMan.LS(LSID.LSID_Language);
            lblGeocoder.Text         = LangMan.LS(LSID.LSID_Geocoder);
            lblGeoSearchCountry.Text = LangMan.LS(LSID.LSID_GeoSearchCountryRestriction);

            // Multimedia
            pageMultimedia.Text = LangMan.LS(LSID.LSID_RPMultimedia);

            chkRemovableMediaWarning.Text = LangMan.LS(LSID.LSID_RemovableMediaWarningOption);
            chkEmbeddedMediaPlayer.Text   = LangMan.LS(LSID.LSID_EmbeddedMediaPlayer);

            chkAllowMediaDirectRefs.Text = LangMan.LS(LSID.LSID_AllowMediaDirectReferences);
            chkAllowMediaStoreRelativeReferences.Text = LangMan.LS(LSID.LSID_AllowMediaRelativeReferences);

            lblMediaStoreDefault.Text = LangMan.LS(LSID.LSID_MediaStoreDefault);
            cmbMediaStoreDefault.Items.Clear();
            for (MediaStoreType mst = MediaStoreType.mstReference; mst <= MediaStoreType.mstURL; mst++)
            {
                cmbMediaStoreDefault.Items.Add(new GKComboItem <MediaStoreType>(LangMan.LS(GKData.GKStoreTypes[(int)mst].Name), mst));
            }

            chkAllowDeleteMediaFileFromStgArc.Text = LangMan.LS(LSID.LSID_AllowDeleteMediaFileFromStgArc);
            chkAllowDeleteMediaFileFromRefs.Text   = LangMan.LS(LSID.LSID_AllowDeleteMediaFileFromRefs);
            chkDeleteMediaFileWithoutConfirm.Text  = LangMan.LS(LSID.LSID_DeleteMediaFileWithoutConfirm);

            // Charts
            pageCharts.Text = LangMan.LS(LSID.LSID_Charts);

            pageTreeChart.Text  = LangMan.LS(LSID.LSID_Trees);
            grpTreePersons.Text = LangMan.LS(LSID.LSID_ViewTree);

            chkSurname.Text                      = LangMan.LS(LSID.LSID_Surname);
            chkName.Text                         = LangMan.LS(LSID.LSID_Name);
            chkPatronymic.Text                   = LangMan.LS(LSID.LSID_Patronymic);
            chkDiffLines.Text                    = LangMan.LS(LSID.LSID_DiffLines);
            chkBirthDate.Text                    = LangMan.LS(LSID.LSID_BirthDate);
            chkDeathDate.Text                    = LangMan.LS(LSID.LSID_DeathDate);
            chkOnlyYears.Text                    = LangMan.LS(LSID.LSID_OnlyYears);
            chkMarriagesDates.Text               = LangMan.LS(LSID.LSID_MarriagesDates);
            chkKinship.Text                      = LangMan.LS(LSID.LSID_Kinship);
            chkSignsVisible.Text                 = LangMan.LS(LSID.LSID_SignsVisible);
            chkTreeDecorative.Text               = LangMan.LS(LSID.LSID_TreeDecorative);
            chkPortraitsVisible.Text             = LangMan.LS(LSID.LSID_PortraitsVisible);
            chkDefaultPortraits.Text             = LangMan.LS(LSID.LSID_DefaultPortraits);
            chkInvertedTree.Text                 = LangMan.LS(LSID.LSID_InvertedTree);
            chkChildlessExclude.Text             = LangMan.LS(LSID.LSID_ChildlessExclude);
            chkShowPlaces.Text                   = LangMan.LS(LSID.LSID_ShowPlaces);
            chkSeparateDAPLines.Text             = LangMan.LS(LSID.LSID_SeparateDatesAndPlacesLines);
            chkHideUnknownSpouses.Text           = LangMan.LS(LSID.LSID_HideUnknownSpouses);
            chkCheckTreeSize.Text                = LangMan.LS(LSID.LSID_CheckTreeSize);
            chkDottedLinesOfAdoptedChildren.Text = LangMan.LS(LSID.LSID_DottedLinesOfAdoptedChildren);
            chkBoldNames.Text                    = LangMan.LS(LSID.LSID_BoldNames);

            grpTreeDecor.Text      = LangMan.LS(LSID.LSID_Decor);
            lblMaleColor.Text      = LangMan.LS(LSID.LSID_Man);
            lblFemaleColor.Text    = LangMan.LS(LSID.LSID_Woman);
            lblUnkSexColor.Text    = LangMan.LS(LSID.LSID_UnkSex);
            lblUnHusbandColor.Text = LangMan.LS(LSID.LSID_UnHusband);
            lblUnWifeColor.Text    = LangMan.LS(LSID.LSID_UnWife);
            //lblFont.Text = LangMan.LS(LSID.LSID_Font);

            grpSpacings.Text   = LangMan.LS(LSID.LSID_Spacings);
            lblMargins.Text    = LangMan.LS(LSID.LSID_Margins);
            lblBranchDist.Text = LangMan.LS(LSID.LSID_BranchDist);
            lblGenDist.Text    = LangMan.LS(LSID.LSID_GenDist);
            lblSpouseDist.Text = LangMan.LS(LSID.LSID_SpouseDist);

            chkSeparateDepth.Text           = LangMan.LS(LSID.LSID_SeparateDepth);
            lblDefaultDepth.Text            = LangMan.LS(LSID.LSID_DefaultDepth);
            lblDefaultDepthAncestors.Text   = LangMan.LS(LSID.LSID_DefaultDepth) + ": " + LangMan.LS(LSID.LSID_Ancestors);
            lblDefaultDepthDescendants.Text = LangMan.LS(LSID.LSID_DefaultDepth) + ": " + LangMan.LS(LSID.LSID_Descendants);

            pageAncCircle.Text = LangMan.LS(LSID.LSID_AncestorsCircle);

            // UIView
            pageUIView.Text = LangMan.LS(LSID.LSID_Interface);

            pageViewCommon.Text = LangMan.LS(LSID.LSID_ListsAll);

            rgFNPFormat.Text = LangMan.LS(LSID.LSID_NamesFormat);
            radSNP.Text      = LangMan.LS(LSID.LSID_NF1);
            radS_NP.Text     = LangMan.LS(LSID.LSID_NF2);
            radS_N_P.Text    = LangMan.LS(LSID.LSID_NF3);

            chkPlacesWithAddress.Text   = LangMan.LS(LSID.LSID_PlacesWithAddress);
            chkHighlightUnparented.Text = LangMan.LS(LSID.LSID_HighlightUnparented);
            chkHighlightUnmarried.Text  = LangMan.LS(LSID.LSID_HighlightUnmarried);

            chkAutoSortChildren.Text          = LangMan.LS(LSID.LSID_AutoSortChildren);
            chkAutoSortSpouses.Text           = LangMan.LS(LSID.LSID_AutoSortSpouses);
            chkFirstCapitalLetterInNames.Text = LangMan.LS(LSID.LSID_FirstCapitalLetterInNames);
            chkShortKinshipForm.Text          = LangMan.LS(LSID.LSID_ShortKinshipForm);
            chkSurnameFirstInOrder.Text       = LangMan.LS(LSID.LSID_SurnameFirstInOrder);

            grpDateFormat.Text        = LangMan.LS(LSID.LSID_DateFormat);
            chkShowDatesCalendar.Text = LangMan.LS(LSID.LSID_ShowDatesCalendar);
            chkShowDatesSigns.Text    = LangMan.LS(LSID.LSID_ShowDatesSigns);

            grpAdvancedNames.Text       = LangMan.LS(LSID.LSID_AdditionalNames);
            chkExtendWomanSurnames.Text = LangMan.LS(LSID.LSID_ExtendedWomanSurnames);
            radMaiden_Married.Text      = LangMan.LS(LSID.LSID_WSF_Maiden_Married);
            radMarried_Maiden.Text      = LangMan.LS(LSID.LSID_WSF_Married_Maiden);
            radMaiden.Text  = LangMan.LS(LSID.LSID_WSF_Maiden);
            radMarried.Text = LangMan.LS(LSID.LSID_WSF_Married);

            pageViewPersons.Text = LangMan.LS(LSID.LSID_ListPersons);
            btnDefList.Text      = LangMan.LS(LSID.LSID_DefList);

            // Pedigree
            pagePedigree.Text = LangMan.LS(LSID.LSID_Pedigrees);

            grpPedigree.Text    = LangMan.LS(LSID.LSID_PedigreeGen);
            chkAttributes.Text  = LangMan.LS(LSID.LSID_IncludeAttributes);
            chkNotes.Text       = LangMan.LS(LSID.LSID_IncludeNotes);
            chkSources.Text     = LangMan.LS(LSID.LSID_IncludeSources);
            chkGenerations.Text = LangMan.LS(LSID.LSID_IncludeGenerations);

            grpPedigreeFormat.Text = LangMan.LS(LSID.LSID_PedigreeFormat);
            radExcess.Text         = LangMan.LS(LSID.LSID_PF1);
            radCompact.Text        = LangMan.LS(LSID.LSID_PF2);

            // Plugins
            pagePlugins.Text = LangMan.LS(LSID.LSID_Plugins);
        }
Esempio n. 9
0
 public MediaStore(MediaStoreType storeType, string fileName)
 {
     StoreType = storeType;
     FileName  = fileName;
 }
Esempio n. 10
0
        public void LoadFromFile(IniFile ini)
        {
            if (ini == null)
            {
                throw new ArgumentNullException("ini");
            }

            int optsVersion = ini.ReadInteger("Common", "OptsVersion", 0);

            fDefNameFormat     = (NameFormat)ini.ReadInteger("Common", "DefNameFormat", 0);
            fDefDateFormat     = (DateFormat)ini.ReadInteger("Common", "DefDateFormat", 0);
            fLastDir           = ini.ReadString("Common", "LastDir", "");
            fPlacesWithAddress = ini.ReadBool("Common", "PlacesWithAddress", false);
            fShowTips          = ini.ReadBool("Common", "ShowTips", true);
            fInterfaceLang     = (ushort)ini.ReadInteger("Common", "InterfaceLang", 0);
            fFileBackup        = (FileBackup)ini.ReadInteger("Common", "FileBackup", 0);
            fFileBackupEachRevisionMaxCount = ini.ReadInteger("Common", "FileBackupEachRevisionMaxCount", 0);
            fShowDatesCalendar                 = ini.ReadBool("Common", "ShowDatesCalendar", false);
            fShowDatesSign                     = ini.ReadBool("Common", "ShowDatesSigns", false);
            fRemovableMediaWarning             = ini.ReadBool("Common", "RemovableMediaWarning", true);
            fLoadRecentFiles                   = ini.ReadBool("Common", "LoadRecentFiles", true);
            fEmbeddedMediaPlayer               = ini.ReadBool("Common", "EmbeddedMediaPlayer", true);
            fAllowMediaStoreReferences         = ini.ReadBool("Common", "AllowMediaStoreReferences", false);
            fAllowMediaStoreRelativeReferences = ini.ReadBool("Common", "AllowMediaStoreRelativeReferences", true); // only when AllowMediaStoreReferences is true
            fMediaStoreDefault                 = (MediaStoreType)ini.ReadInteger("Common", "MediaStoreDefault", 0); // (int)MediaStoreType.mstReference
            fAllowDeleteMediaFileFromStgArc    = ini.ReadBool("Common", "AllowDeleteMediaFileFromStgArc", true);
            fAllowDeleteMediaFileFromRefs      = ini.ReadBool("Common", "AllowDeleteMediaFileFromRefs", false);
            fDeleteMediaFileWithoutConfirm     = ini.ReadBool("Common", "DeleteMediaFileWithoutConfirm", false);
            fAutoCheckUpdates                  = ini.ReadBool("Common", "AutoCheckUpdates", true);
            fAutoSortChildren                  = ini.ReadBool("Common", "AutoSortChildren", true);
            fAutoSortSpouses                   = ini.ReadBool("Common", "AutoSortSpouses", false);
            fCharsetDetection                  = ini.ReadBool("Common", "CharsetDetection", false);
            fFirstCapitalLetterInNames         = ini.ReadBool("Common", "FirstCapitalLetterInNames", false);
            fDialogClosingWarn                 = ini.ReadBool("Common", "DialogClosingWarn", false);
            fShortKinshipForm                  = ini.ReadBool("Common", "ShortKinshipForm", false);
            fSurnameFirstInOrder               = ini.ReadBool("Common", "SurnameFirstInOrder", true);

            fAutosave         = ini.ReadBool("Common", "Autosave", false);
            fAutosaveInterval = ini.ReadInteger("Common", "AutosaveInterval", 10);

            fExtendedNames      = ini.ReadBool("Common", "ExtendedNames", false);
            fWomanSurnameFormat = (WomanSurnameFormat)ini.ReadInteger("Common", "WomanSurnameFormat", 0);

            fGeocoder         = ini.ReadString("Common", "Geocoder", "Google");
            fGeoSearchCountry = ini.ReadString("Common", "GeoSearchCountry", "");

            int kl = ini.ReadInteger("Common", "KeyLayout", AppHost.Instance.GetKeyLayout());

            AppHost.Instance.SetKeyLayout(kl);

            fTreeChartOptions.LoadFromFile(ini);
            fPedigreeOptions.LoadFromFile(ini);
            fProxy.LoadFromFile(ini);

            int cnt = ini.ReadInteger("NameFilters", "Count", 0);

            for (int i = 0; i < cnt; i++)
            {
                string st = ini.ReadString("NameFilters", "Filter_" + i.ToString(), "");
                if (st != "")
                {
                    fNameFilters.Add(st);
                }
            }

            cnt = ini.ReadInteger("ResidenceFilters", "Count", 0);
            for (int i = 0; i < cnt; i++)
            {
                fResidenceFilters.Add(ini.ReadString("ResidenceFilters", "Filter_" + i.ToString(), ""));
            }

            cnt = ini.ReadInteger("EventFilters", "Count", 0);
            for (int i = 0; i < cnt; i++)
            {
                fEventFilters.Add(ini.ReadString("EventFilters", "EventVal_" + i.ToString(), ""));
            }

            LoadMRUFromFile(ini, fMRUFiles);

            cnt = ini.ReadInteger("Relations", "Count", 0);
            for (int i = 0; i < cnt; i++)
            {
                fRelations.Add(ini.ReadString("Relations", "Relation_" + i.ToString(), ""));
            }

            fIndividualListColumns.LoadFromFile(ini, "PersonsColumns");

            fListHighlightUnmarriedPersons  = ini.ReadBool("ListPersons", "HighlightUnmarried", false);
            fListHighlightUnparentedPersons = ini.ReadBool("ListPersons", "HighlightUnparented", false);

            fMWinRect.Left   = ini.ReadInteger("Common", "MWinL", -1);
            fMWinRect.Top    = ini.ReadInteger("Common", "MWinT", -1);
            fMWinRect.Right  = ini.ReadInteger("Common", "MWinW", -1);
            fMWinRect.Bottom = ini.ReadInteger("Common", "MWinH", -1);
            fMWinState       = (WindowState)((uint)ini.ReadInteger("Common", "MWinState", 0));

            cnt = ini.ReadInteger("LastBases", "Count", 0);
            for (int i = 0; i < cnt; i++)
            {
                string st = ini.ReadString("LastBases", "LB" + i.ToString(), "");
                AddLastBase(st);
            }

            fCircleChartOptions.LoadFromFile(ini);

            fListOptions.LoadFromFile(ini);

            LoadPluginsFromFile(ini);
        }
Esempio n. 11
0
        public void ChangeStoreType()
        {
            MediaStoreType storeType = fView.StoreType.GetSelectedTag <MediaStoreType>();

            UpdateFileStore(true, storeType);
        }