Ejemplo n.º 1
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core = core;
 }
Ejemplo n.º 2
0
        public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            var p = new PluginSettings(core);

            AddAction(ACTION_SHOW);
            AddAction(ACTION_DOWNLOADANDPUBLISH);
            AddAction(ACTION_SEP);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_ACTIONS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_CONDITIONS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_DELETE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_EXECUTE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_FLOW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_NEW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_RENAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_SAVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_COPY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_EXECUTEONCE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_FLOWEXECUTED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_DONOTSHOWAGAIN));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_OVERWRITE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_WARNING));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_DOWNLOADANDPUBLISH));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_ERRORIMPORTINGFLOW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_START));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_ALLPUBLICFLOWS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_AUTHOR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_CREATED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_DELETE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_DESCRIPTION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_DOWNLOAD));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_FLOW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_MODIFIED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_NAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_NOSCRIPTS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_PUBLIC));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_1));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_2));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_3));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_4));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_5));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_6));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_7));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERFLOWS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_TITLE1));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_TITLE2));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_UPLOAD));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_YOURFLOWS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_YOURUPLOADED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SUCCESS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_DOWNLOADSUCCESS));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_SHOWCONNECTIONLABEL));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionWaypointCounter.STR_COORDSONLY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionWaypointCounter.STR_ADDGEOCACHE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionAttributes.STR_ALL));

            return await base.InitializeAsync(core);
        }
Ejemplo n.º 3
0
 public PluginSettings(ICore core)
 {
     _uniqueInstance = this;
     _core           = core;
 }
Ejemplo n.º 4
0
        public async override Task <bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            var p = new PluginSettings(core);

            AddAction(ACTION_SHOW);
            AddAction(ACTION_DOWNLOADANDPUBLISH);
            AddAction(ACTION_SEP);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_ACTIONS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_CONDITIONS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_DELETE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_EXECUTE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_FLOW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_NEW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_RENAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_SAVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_COPY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_EXECUTEONCE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_FLOWEXECUTED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_DONOTSHOWAGAIN));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_OVERWRITE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_WARNING));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_DOWNLOADANDPUBLISH));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_ERRORIMPORTINGFLOW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionBuilderForm.STR_START));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_ALLPUBLICFLOWS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_AUTHOR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_CREATED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_DELETE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_DESCRIPTION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_DOWNLOAD));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_FLOW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_MODIFIED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_NAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_NOSCRIPTS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_PUBLIC));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_1));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_2));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_3));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_4));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_5));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_6));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERERROR_7));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SERVERFLOWS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_TITLE1));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_TITLE2));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_UPLOAD));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_YOURFLOWS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_YOURUPLOADED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_SUCCESS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ServerConnectionForm.STR_DOWNLOADSUCCESS));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_SHOWCONNECTIONLABEL));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionWaypointCounter.STR_COORDSONLY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionWaypointCounter.STR_ADDGEOCACHE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(ActionAttributes.STR_ALL));

            return(await base.InitializeAsync(core));
        }