Пример #1
0
        public async override Task <bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            AddAction(ACTION_SHOW);
            AddAction(ACTION_SEP);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_DELETE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_EXECUTE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_EXPLAIN));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_NEW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_QUERY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_RENAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_SAVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_CIRCULARREFRENCE));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryOperator.STR_AND));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryOperator.STR_END));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryOperator.STR_OR));

            QueryExpressionImplementation qei;

            qei = new QECountry(core);
            qei = new QEState(core);
            qei = new QEMunicipality(core);
            qei = new QECity(core);
            qei = new QECode(core);
            qei = new QEPublished(core);
            qei = new QEDataFromDate(core);
            qei = new QELat(core);
            qei = new QELon(core);
            qei = new QEDistanceToCenter(core);
            qei = new QEAvailable(core);
            qei = new QEArchived(core);
            qei = new QEGeocacheType(core);
            qei = new QEPlacedBy(core);
            qei = new QEOwner(core);
            qei = new QEContainer(core);
            qei = new QETerrain(core);
            qei = new QEDifficulty(core);
            qei = new QEMemberOnly(core);
            qei = new QECustomCoords(core);
            qei = new QEFavorites(core);
            qei = new QEFlagged(core);
            qei = new QEFound(core);
            qei = new QELocked(core);
            qei = new QEQuery(core);

            return(await base.InitializeAsync(core));
        }
Пример #2
0
        public override bool Initialize(Framework.Interfaces.ICore core)
        {
            AddAction(ACTION_SHOW);
            AddAction(ACTION_SEP);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_DELETE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_EXECUTE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_EXPLAIN));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_NEW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_QUERY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_RENAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_SAVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryBuilderForm.STR_CIRCULARREFRENCE));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryOperator.STR_AND));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryOperator.STR_END));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(QueryOperator.STR_OR));

            QueryExpressionImplementation qei;
            qei = new QECountry(core);
            qei = new QEState(core);
            qei = new QEMunicipality(core);
            qei = new QECity(core);
            qei = new QECode(core);
            qei = new QEPublished(core);
            qei = new QEDataFromDate(core);
            qei = new QELat(core);
            qei = new QELon(core);
            qei = new QEDistanceToCenter(core);
            qei = new QEAvailable(core);
            qei = new QEArchived(core);
            qei = new QEGeocacheType(core);
            qei = new QEPlacedBy(core);
            qei = new QEOwner(core);
            qei = new QEContainer(core);
            qei = new QETerrain(core);
            qei = new QEDifficulty(core);
            qei = new QEMemberOnly(core);
            qei = new QECustomCoords(core);
            qei = new QEFavorites(core);
            qei = new QEFlagged(core);
            qei = new QEFound(core);
            qei = new QELocked(core);
            qei = new QEQuery(core);

            return base.Initialize(core);
        }