public BrowserScriptSelectAllGeocaches(WebbrowserForm.BrowserTab browserTab, Utils.BasePlugin.Plugin ownerPlugin, WebBrowser webBrowser, Framework.Interfaces.ICore core)
     : base(browserTab, ownerPlugin, "Select all geocaches", webBrowser, core, true)
 {
     core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SELECT));
     webBrowser.Navigating        += new WebBrowserNavigatingEventHandler(webBrowser_Navigating);
     webBrowser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser_DocumentCompleted);
 }
Exemple #2
0
        public BrowserScriptPocketQueries(WebbrowserForm.BrowserTab browserTab, Utils.BasePlugin.Plugin ownerPlugin, WebBrowser webBrowser, Framework.Interfaces.ICore core)
            : base(browserTab, ownerPlugin, "Pocket Queries", webBrowser, core, true)
        {
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SAVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_RESTORE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_CREATE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SETTINGSSAVED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_DELETE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSettingForm.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSettingForm.STR_REMOVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSettingForm.STR_SAVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSettingForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_AUTODATERANGES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_AUTOMATIC));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_BELGIUM));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_CANCEL));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_CREATEPQ));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_DATE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_DELAY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_END));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_FROMSELECTION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_ITALY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_MARGIN));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_MAXINLASTPQ));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_MAXINPQ));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_NAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_NETHERLANDS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_NEW));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_REMOVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_RENAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_SAVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_SERIE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_SETTINGS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_START));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_TEMPLATE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_AUTOMATICACTIVATE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesForm.STR_FROMGCPROJECT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesGCProjectForm.STR_DESCRIPTION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesGCProjectForm.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(BrowserScriptPocketQueriesPQSeriesGCProjectForm.STR_TITLE));

            webBrowser.Navigating        += new WebBrowserNavigatingEventHandler(webBrowser_Navigating);
            webBrowser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser_DocumentCompleted);

            try
            {
                string p = core.PluginDataPath;
                _settingsFileName = System.IO.Path.Combine(new string[] { p, "pqsettings.xml" });
                _seriesFileName   = System.IO.Path.Combine(new string[] { p, "pqseries.xml" });
            }
            catch
            {
            }
        }
        public BrowserScriptImportBookmark(WebbrowserForm.BrowserTab browserTab, Utils.BasePlugin.Plugin ownerPlugin, WebBrowser webBrowser, Framework.Interfaces.ICore core)
            : base(browserTab, ownerPlugin, "Import bookmark", webBrowser, core, true)
        {
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_IMPORT));
            webBrowser.Navigating        += new WebBrowserNavigatingEventHandler(webBrowser_Navigating);
            webBrowser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser_DocumentCompleted);

            _bookmarkImportPlugin = Utils.PluginSupport.PluginByName(core, "GlobalcachingApplication.Plugins.APIBookmark.Import") as Utils.BasePlugin.Plugin;
        }
Exemple #4
0
        public BrowserScript(WebbrowserForm.BrowserTab browserTab, Utils.BasePlugin.Plugin ownerPlugin, string name, WebBrowser webBrowser, Framework.Interfaces.ICore core, bool hasControls)
        {
            BrowserTab  = browserTab;
            Name        = name;
            Browser     = webBrowser;
            Core        = core;
            HasControls = hasControls;
            OwnerPlugin = ownerPlugin;

            core.LanguageItems.Add(new Framework.Data.LanguageItem(Name));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_IMPORTING));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR));
        }
Exemple #5
0
        public BrowserScript(WebbrowserForm.BrowserTab browserTab, Utils.BasePlugin.Plugin ownerPlugin, string name, WebBrowser webBrowser, Framework.Interfaces.ICore core, bool hasControls)
        {
            BrowserTab = browserTab;
            Name = name;
            Browser = webBrowser;
            Core = core;
            HasControls = hasControls;
            OwnerPlugin = ownerPlugin;

            core.LanguageItems.Add(new Framework.Data.LanguageItem(Name));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_IMPORTING));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR));
        }
 public BrowserScriptHideOldBrowserWarning(WebbrowserForm.BrowserTab browserTab, Utils.BasePlugin.Plugin ownerPlugin, WebBrowser webBrowser, Framework.Interfaces.ICore core)
     : base(browserTab, ownerPlugin, "Hide old browser warning", webBrowser, core, false)
 {
     webBrowser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser_DocumentCompleted);
 }