예제 #1
0
 private void x( PlataDM.vdPersist po )
 {
     po.x( "USERPREFERENCES", this );
 }
예제 #2
0
        void PlataDM.IvdPersistable.Persist(PlataDM.vdPersist po)
        {
            po.x( "fotografnummer", ref Fotografnummer );
            po.x( "mainpath", ref MainPath );
            po.x( "backupfolder", ref BackupFolder );
            po.x( "autoupdatefolder", ref AutoUpdateFolder, string.Empty );
            po.x( "lastimportfolder", ref LastImportFolder );
            po.x( "inhousephotoworkfolder", ref InternalPhotoWorkFolder );
            po.x( "inhousephotographerfolder", ref InternalPhotographerFolder );
            po.x( "openorderfolder", ref OpenOrderFolder );
            po.x( "useopenorderfolder", ref UseOpenOrderFolder );

            po.x( "groupsound", ref _strGroupSound );
            po.x( "portsound", ref _strPortraitSound );

            po.x( "sortorderlastname", ref SortOrderLastName );

            po.x( "fullgrupp", ref FullskärmslägeGruppfoto );
            po.x( "fullport", ref FullskärmslägePorträttfoto );
            Porträttrotering = (PlataDM.Rotering)po.xenum( "portrot", (int)Porträttrotering, (int)PlataDM.Rotering.Medurs );
            Camera = (CameraSdk)po.xenum("camera", (int)Camera );
            ImageSortOrder = (ImageSortOrder)po.xenum( "imagesortorder", (int)ImageSortOrder );

            po.x( "ftpspeed", ref FTPSpeed );
            Brand = (Brand) po.xenum("brand", (int) Brand);

            po.x( "fakecdpath", ref FakeCDPath, @"c:\" );

            if ( po.isLoading )
            {
                po.descendCollection( "VIEW" );
                while ( po.nextInCollection() )
                    SenasteGranskningPath.Add( po.getValueAsString( "path" ) );
                po.descendCollection( "TITLE" );
                while ( po.nextInCollection() )
                    listTitlarEgna.Add( po.getValueAsString( "name" ) );
                }
            else
            {
                foreach ( string s in SenasteGranskningPath )
                {
                    po.descend( "VIEW" );
                    po.writeValue( "path", s );
                    po.ascend();
                }
                foreach ( string s in listTitlarEgna )
                {
                    po.descend( "TITLE" );
                    po.writeValue( "name", s );
                    po.ascend();
                }
            }
        }