Esempio n. 1
0
        public OpenLayersMapForm(Framework.Interfaces.IPlugin owner, Framework.Interfaces.ICore core)
            : base(owner, core)
        {
            InitializeComponent();

            if (Properties.Settings.Default.UpgradeNeeded)
            {
                Properties.Settings.Default.Upgrade();
                Properties.Settings.Default.UpgradeNeeded = false;
                Properties.Settings.Default.Save();
            }

            if (Properties.Settings.Default.WindowPos != null && !Properties.Settings.Default.WindowPos.IsEmpty)
            {
                this.Bounds = Properties.Settings.Default.WindowPos;
                this.StartPosition = FormStartPosition.Manual;
            }

            core.ActiveGeocacheChanged += new Framework.EventArguments.GeocacheEventHandler(core_ActiveGeocacheChanged);
            core.Geocaches.SelectedChanged += new Framework.EventArguments.GeocacheEventHandler(Geocaches_SelectedChanged);
            core.Geocaches.ListSelectionChanged += new EventHandler(Geocaches_ListSelectionChanged);
            core.Geocaches.DataChanged += new Framework.EventArguments.GeocacheEventHandler(Geocaches_DataChanged);
            core.Geocaches.GeocacheAdded += new Framework.EventArguments.GeocacheEventHandler(Geocaches_GeocacheAdded);
            core.Geocaches.GeocacheRemoved += new Framework.EventArguments.GeocacheEventHandler(Geocaches_GeocacheRemoved);
            core.Geocaches.ListDataChanged += new EventHandler(Geocaches_ListDataChanged);

            SelectedLanguageChanged(this, EventArgs.Empty);
        }
        public ActionResult WPCommonOfBuildEventCode_Export(Framework.DataServiceTypes dataServiceType)
        {
            log.Info(string.Format("{0}: WPCommonOfBuildEventCode_Export", Framework.LoggingOptions.UI_Process_Started.ToString()));

            Framework.EntityContracts.ViewModelBase<MSBuildLogsExtended.CommonBLLEntities.BusinessLogicLayerChainedQueryCriteriaEntityBuildEventCodeCommonFlatten> vmFromTempData;
            if (TempData.ContainsKey(TempDataKey_WPCommonOfBuildEventCode))
            {
                vmFromTempData = (Framework.EntityContracts.ViewModelBase<MSBuildLogsExtended.CommonBLLEntities.BusinessLogicLayerChainedQueryCriteriaEntityBuildEventCodeCommonFlatten>)TempData[TempDataKey_WPCommonOfBuildEventCode];

	            var searchResult = MSBuildLogsExtended.CommonBLLIoC.BusinessLogicLayerEntityStaticBuildEventCode.GetMessageOfEntityOfCommon(
		            new MSBuildLogsExtended.CommonBLLEntities.BusinessLogicLayerChainedQueryCriteriaEntityBuildEventCodeCommon(vmFromTempData.Criteria)
                    , new Framework.EntityContracts.QueryPagingSetting(-1, -1)
                    , new Framework.EntityContracts.QueryOrderBySettingCollection(vmFromTempData.QueryOrderBySettingCollecionInString)
					, dataServiceType);

                var result = searchResult.DataStreamServiceResult;

				TempData[TempDataKey_WPCommonOfBuildEventCode] = vmFromTempData.GetPrimaryInformationEntity();
				TempData.Keep(TempDataKey_WPCommonOfBuildEventCode); 

                return File(result.Result, result.MIMEType, string.Format("WPCommonOfBuildEventCode_Export{0}{1}", result.DataServiceType, result.FileExtension));
            }

            return null;
        }
Esempio n. 3
0
 public static void SetDistanceAndAngleGeocacheFromLocation(List<Framework.Data.Geocache> gcList, Framework.Data.Location loc)
 {
     foreach (Framework.Data.Geocache gc in gcList)
     {
         SetDistanceAndAngleGeocacheFromLocation(gc, loc);
     }
 }
Esempio n. 4
0
        public override bool Initialize(Framework.Interfaces.ICore core)
        {
            AddAction(ACTION_SHOW);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_ADDTOSELECTION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_ALL));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_AREA));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_CITY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_COUNTRY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_LEVEL));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_MUNICIPALITY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_NEWSEARCH));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_OTHER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_PREFIX));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_REGIONSELECTION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_SEARCHING));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_SEARCHWITHINSELECTION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_SELECT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_SELECTIONOPTIONS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_STATE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SelectRegionForm.STR_INENVELOPE));

            return base.Initialize(core);
        }
        private void Build(Framework.Parts.IActor actor)
        {
            displayProperties = new Utility.PropertyTable();
            Proteus.Framework.Parts.IProperty[] properties = currentActor.Properties;

            foreach (Proteus.Framework.Parts.IProperty p in properties)
            {
                // Now set it.
                TypeConverter   converter   = TypeDescriptor.GetConverter( p.Type );
                Type            editorType  = p.EditorType;

                Utility.PropertySpec spec = null;

                if (converter != null && editorType != null)
                {
                    spec = new Utility.PropertySpec(p.Name, p.Type, p.Category, p.Description, p.DefaultValue,editorType,converter.GetType() );
                }
                else
                {
                    spec = new Utility.PropertySpec(p.Name, p.Type, p.Category, p.Description, p.DefaultValue);
                }

                // Store it.
                displayProperties.Properties.Add( spec );
                displayProperties[ p.Name ] = p.CurrentValue;
            }

            propertyGrid1.SelectedObject = displayProperties;
            displayProperties.SetValue += new Proteus.Editor.Utility.PropertySpecEventHandler(displayProperties_SetValue);
        }
        protected override void EnsureViewData(FileEditorModel model, Framework.Persistence.Model.IO.File file)
        {
            base.EnsureViewData(model, file);

            // Setup UIElements
            model.UIElements.Add(new SeperatorUIElement());
            model.UIElements.Add(new ButtonUIElement
            {
                Alias = "InsertField",
                Title = "Insert an umbraco page field",
                CssClass = "insert-field-button toolbar-button",
                AdditionalData = new Dictionary<string, string>
                {
                    { "id", "submit_InsertField" },
                    { "name", "submit.InsertField" }
                }
            });
            model.UIElements.Add(new ButtonUIElement
            {
                Alias = "InsertMacro",
                Title = "Insert a macro",
                CssClass = "insert-macro-button toolbar-button",
                AdditionalData = new Dictionary<string, string>
                {
                    { "id", "submit_InsertMacro" },
                    { "name", "submit.InsertMacro" }
                }
            });
        }
Esempio n. 7
0
        public override bool Initialize(Framework.Interfaces.ICore core)
        {
            AddAction(ACTION_EXPORT_ALL);
            AddAction(ACTION_EXPORT_SELECTED);

            if (Properties.Settings.Default.UpgradeNeeded)
            {
                Properties.Settings.Default.Upgrade();
                Properties.Settings.Default.UpgradeNeeded = false;
                Properties.Settings.Default.Save();
            }

            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_NOGEOCACHESELECTED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_EXPORTINGGPX));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_CREATINGFILE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SAVING));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SAVINGDATA));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_SAVINGGEOCACHES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_MAXLOGS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_GRABBEDIMG));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_MAXFILESINFOLDER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_MAXFILESINFOLDERNULL));

            return base.Initialize(core);
        }
Esempio n. 8
0
 public GPXGenerator(Framework.Interfaces.ICore core, List<Framework.Data.Geocache> gcList, Version gpxVersion)
 {
     _core = core;
     _gcList = gcList;
     _gpxVersion = gpxVersion;
     _index = 0;
 }
Esempio n. 9
0
        public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            var p = new PluginSettings(core);

            AddAction(ACTION_ADD_ALL);
            AddAction(ACTION_ADD_SELECTED);
            AddAction(ACTION_ADD_ACTIVE);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_NOGEOCACHESELECTED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_ADDONETOCAL));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_ADDTO));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_ADDTOCAL));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_BY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_DESCRIPTION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_DESCRIPTIONB));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_END));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_EVENT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_GEOCACHEEVENT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_GOOGLEXPL));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_LOCATION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_SAVE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_START));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_SUMMARY));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(AddToCalendarForm.STR_TITLE));

            return await base.InitializeAsync(core);
        }
Esempio n. 10
0
        protected override void InitUIMainWindow(Framework.Interfaces.IPluginUIMainWindow mainWindowPlugin)
        {
            base.InitUIMainWindow(mainWindowPlugin);

            mainWindowPlugin.FileDrop += new Framework.EventArguments.FileDropEventHandler(mainWindowPlugin_FileDrop);
            mainWindowPlugin.CommandLineArguments += new Framework.EventArguments.CommandLineEventHandler(mainWindowPlugin_CommandLineArguments);
        }
Esempio n. 11
0
 void Logs_LogRemoved(object sender, Framework.EventArguments.LogEventArgs e)
 {
     if (this.Visible)
     {
         UpdateView(true);
     }
 }
Esempio n. 12
0
        public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            if (PluginSettings.Instance == null)
            {
                var p = new PluginSettings(core);
            }

            AddAction(ACTION_EXPORT_ALL);
            AddAction(ACTION_EXPORT_SELECTED);
            AddAction(ACTION_EXPORT_ACTIVE);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_NOGEOCACHESELECTED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_EXPORTINGGPX));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_CREATINGFILE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_GPXVERSION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_ZIPFILE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_ADDWPTTODESCR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_USEHINTSDESCR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_INCLNOTES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_ADDWAYPOINTS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_EXTRACOORDNAMEPREFIX));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_EXTRAINFO));

            return await base.InitializeAsync(core);
        }
Esempio n. 13
0
        public static List<TestResult> RunTests(int runID, Framework framework, ITestSignature testSignature)
        {
            List<TestResult> results = new List<TestResult>();

            TestResult result = new TestResult() { Run = runID, Framework = framework };
            List<long> playerByIDResults = new List<long>();
            for (int i = 1; i <= NumPlayers; i++)
            {
                playerByIDResults.Add(testSignature.GetPlayerByID(i));
            }
            result.PlayerByIDMilliseconds = Math.Round(playerByIDResults.Average(), 2);

            List<long> playersForTeamResults = new List<long>();
            for (int i = 1; i <= NumTeams; i++)
            {
                playersForTeamResults.Add(testSignature.GetPlayersForTeam(i));
            }
            result.PlayersForTeamMilliseconds = Math.Round(playersForTeamResults.Average(), 2);
            List<long> teamsForSportResults = new List<long>();
            for (int i = 1; i <= NumSports; i++)
            {
                teamsForSportResults.Add(testSignature.GetTeamsForSport(i));
            }
            result.TeamsForSportMilliseconds = Math.Round(teamsForSportResults.Average(), 2);
            results.Add(result);

            return results;
        }
Esempio n. 14
0
        public EditorForm(Framework.Interfaces.IPlugin owner, Framework.Interfaces.ICore core)
            : base(owner, core)
        {
            InitializeComponent();

            var p = PluginSettings.Instance.WindowPos;
            if (p != null && !p.IsEmpty)
            {
                this.Bounds = p;
                this.StartPosition = FormStartPosition.Manual;
            }

            SelectedLanguageChanged(this, EventArgs.Empty);

            Repository.Instance.Initialize(core);
            comboBox1.Items.AddRange(Repository.Instance.AvailableBookmarks.ToArray());

            Repository.Instance.DataChanged += new EventHandler(Instance_DataChanged);

            core.ActiveGeocacheChanged += new Framework.EventArguments.GeocacheEventHandler(core_ActiveGeocacheChanged);
            core.Geocaches.DataChanged += new Framework.EventArguments.GeocacheEventHandler(Geocaches_DataChanged);
            core.Geocaches.ListDataChanged += new EventHandler(Geocaches_ListDataChanged);
            core.Geocaches.SelectedChanged += new Framework.EventArguments.GeocacheEventHandler(Geocaches_SelectedChanged);
            core.Geocaches.ListSelectionChanged += new EventHandler(Geocaches_ListSelectionChanged);
        }
Esempio n. 15
0
 void Geocaches_SelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (Visible)
     {
         checkButtons();
     }
 }
Esempio n. 16
0
        public SettingsPanel(Framework.Interfaces.ICore core)
        {
            InitializeComponent();

            this.label1.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_INFO);
            this.buttonClear.Text = Utils.LanguageSupport.Instance.GetTranslation(STR_CLEAR);

            List<Framework.Data.ShortcutInfo> scuts = core.ShortcutInfo;
            List<Framework.Interfaces.IPlugin> pins = core.GetPlugins();
            foreach (Framework.Interfaces.IPlugin p in pins)
            {
                List<string> actions = p.GetActionSubactionList('@');
                foreach (string act in actions)
                {
                    string[] parts = act.Split(new char[] { '@' });
                    ListViewItem lvi = new ListViewItem(new string[] { p.GetType().ToString(), Utils.LanguageSupport.Instance.GetTranslation(parts[0]), parts.Length==1?"": Utils.LanguageSupport.Instance.GetTranslation(parts[1]), "" });
                    lvi.Tag = p;
                    listView1.Items.Add(lvi);
                    Framework.Data.ShortcutInfo sc = (from t in scuts where t.PluginType == p.GetType().ToString() && t.PluginAction == parts[0] && (parts.Length==1 || t.PluginSubAction == parts[1]) select t).FirstOrDefault();
                    lvi.SubItems[0].Tag = p.GetType().ToString();
                    lvi.SubItems[1].Tag = parts[0];
                    lvi.SubItems[2].Tag = parts.Length==1?"":parts[1];
                    if (sc != null)
                    {
                        lvi.SubItems[3].Text = sc.ShortcutKeyString;
                        lvi.SubItems[3].Tag = sc.ShortcutKeys;
                    }
                    else
                    {
                        lvi.SubItems[3].Tag = null;
                    }
                }
            }
        }
        public void Initialize(Framework.Initialization.InitializationEngine context)
        {
            if (_initialized || PageReference.IsNullOrEmpty(GlobalNewsContainer) || context.HostType != HostType.WebApplication )
            {
                return;
            }

            var providerManager = ServiceLocator.Current.GetInstance<IContentProviderManager>();

            var startPages = DataFactory.Instance.GetChildren(PageReference.RootPage).OfType<StartPage>();

            // Attach content provider to each site's global news container
            foreach (var startPage in startPages.Where(startPage => !PageReference.IsNullOrEmpty(startPage.GlobalNewsPageLink)))
            {
                try
                {
                    _logger.DebugFormat("Attaching global news content provider to page {0} [{1}], global news will be retrieved from page {2} [{3}]",
                        startPage.GlobalNewsPageLink.GetPage().Name,
                        startPage.GlobalNewsPageLink.ID,
                        GlobalNewsContainer.GetPage().PageName,
                        GlobalNewsContainer.ID);

                    var provider = new ClonedContentProvider(GlobalNewsContainer, startPage.GlobalNewsPageLink, startPage.Category);

                    providerManager.ProviderMap.AddProvider(provider);
                }
                catch (Exception ex)
                {
                    _logger.ErrorFormat("Unable to create global news content provider for start page with ID {0}: {1}", startPage.PageLink.ID, ex.Message);
                }
            }

            _initialized = true;
        }
Esempio n. 18
0
        public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            if (PluginSettings.Instance == null)
            {
                var p = new PluginSettings(core);
            }

            AddAction(ACTION_EXPORT_ACTIVE);
            AddAction(ACTION_EXPORT_SELECTED);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_NOGEOCACHESELECTED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_CANCEL));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_START));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_TITLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_INCLNOTES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_ADDCHILDWAYPOINTS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_USENAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_MAXNAMELENGTH));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_MINSTARTNAME));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_ADDWPTTODESCR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_USEHINTSDESCR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_GPXVERSION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(GarminCommunicatorForm.STR_MAXLOGS));

            return await base.InitializeAsync(core);
        }
Esempio n. 19
0
        public void Initialize(Framework.Interfaces.ICore core)
        {
            _core = core;
            _availableWaypoints = new Hashtable();

            try
            {
                _dbcon = new Utils.DBConComSqlite(Path.Combine(core.PluginDataPath,"gcvote.db3"));

                object o = _dbcon.ExecuteScalar("SELECT name FROM sqlite_master WHERE type='table' AND name='votes'");
                if (o == null || o.GetType() == typeof(DBNull))
                {
                    _dbcon.ExecuteNonQuery("create table 'votes' (Waypoint text, VoteMedian float, VoteAvg float, VoteCnt integer, VoteUser double)");
                    _dbcon.ExecuteNonQuery("create unique index idx_votess on votes (Waypoint)");
                }

                DbDataReader dr = _dbcon.ExecuteReader("select Waypoint from votes");
                while (dr.Read())
                {
                    _availableWaypoints.Add(dr[0], true);
                }
            }
            catch
            {
                _dbcon = null;
                _availableWaypoints.Clear();
            }
        }
Esempio n. 20
0
 public BrowserScriptRework(WebbrowserForm.BrowserTab browserTab, Utils.BasePlugin.Plugin ownerPlugin, WebBrowser webBrowser, Framework.Interfaces.ICore core)
     : base(browserTab, ownerPlugin, "Rework", webBrowser, core, true)
 {
     core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_REWORK));
     webBrowser.Navigating += new WebBrowserNavigatingEventHandler(webBrowser_Navigating);
     webBrowser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser_DocumentCompleted);
 }
Esempio n. 21
0
        public override bool Initialize(Framework.Interfaces.ICore core)
        {
            if (Properties.Settings.Default.UpgradeNeeded)
            {
                Properties.Settings.Default.Upgrade();
                Properties.Settings.Default.UpgradeNeeded = false;
                Properties.Settings.Default.Save();
            }

            AddAction(ACTION_EXPORT_ALL);
            AddAction(ACTION_EXPORT_SELECTED);
            AddAction(ACTION_EXPORT_ACTIVE);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_NOGEOCACHESELECTED));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_EXPORTINGGPX));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_CREATINGFILE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_GPXVERSION));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_ZIPFILE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_ADDWPTTODESCR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_USEHINTSDESCR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_INCLNOTES));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_ADDWAYPOINTS));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsPanel.STR_EXTRACOORDNAMEPREFIX));

            return base.Initialize(core);
        }
Esempio n. 22
0
 public FrmFormwork(Framework.Entity.Chapter chapter, object type)
 {
     InitializeComponent();
     @class = type;
     templateList = contentService.GetContentTemplateByTitle(chapter.Title);
     CbxFormworkType.SelectedIndex = 0;
 }
Esempio n. 23
0
        public AttachementsForm(Framework.Interfaces.IPlugin owner, Framework.Interfaces.ICore core)
            : base(owner, core)
        {
            InitializeComponent();

            if (Properties.Settings.Default.UpgradeNeeded)
            {
                Properties.Settings.Default.Upgrade();
                Properties.Settings.Default.UpgradeNeeded = false;
                Properties.Settings.Default.Save();
            }

            if (Properties.Settings.Default.WindowPos != null && !Properties.Settings.Default.WindowPos.IsEmpty)
            {
                this.Bounds = Properties.Settings.Default.WindowPos;
                this.StartPosition = FormStartPosition.Manual;
            }

            try
            {
                _databaseFile = System.IO.Path.Combine(core.PluginDataPath, "attachements.db3" );
            }
            catch
            {
            }

            SelectedLanguageChanged(this, EventArgs.Empty);
            core.ActiveGeocacheChanged += new Framework.EventArguments.GeocacheEventHandler(core_ActiveGeocacheChanged);
        }
Esempio n. 24
0
        public override bool Initialize(Framework.Interfaces.ICore core)
        {
            bool result = false;

            _customDictionaryDatabaseFile = System.IO.Path.Combine(core.PluginDataPath, "LanguageEng.db3" );

            if (base.Initialize(core))
            {
                LanguageInfo li = new LanguageInfo();
                li.Action = "English";
                li.CultureInfo = new System.Globalization.CultureInfo(1033); //en-US
                li.Action = li.CultureInfo.NativeName;
                SupportedLanguages.Add(li);

                try
                {
                    string fld = System.IO.Path.GetDirectoryName(_customDictionaryDatabaseFile);
                    if (!System.IO.Directory.Exists(fld))
                    {
                        System.IO.Directory.CreateDirectory(fld);
                    }
                }
                catch
                {
                }


                initDatabase();

                result = true;
            }
            return result;
        }
Esempio n. 25
0
 void Geocaches_DataChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (this.Visible && _mapUpdated)
     {
         UpdateMap();
     }
 }
Esempio n. 26
0
        public SetupWizardForm(Framework.Interfaces.IPlugin owner, Framework.Interfaces.ICore core)
        {
            InitializeComponent();
            this.TopMost = true;

            _ownerPlugin = owner as SetupWizard;
            _core = core;

            UpdateTextForLanguage();

            textBoxAccountname.Text = core.GeocachingComAccount.AccountName;

            textBoxHomecoords.Text = Utils.Conversion.GetCoordinatesPresentation(core.HomeLocation);
            textBoxCentercoords.Text = Utils.Conversion.GetCoordinatesPresentation(core.CenterLocation);

            comboBoxLanguage.Items.Add(Utils.LanguageSupport.Instance.GetTranslation(STR_ORGTEXT));
            comboBoxLanguage.Items.AddRange(Utils.LanguageSupport.Instance.GetSupportedCultures().ToArray());
            for (int i = 1; i < comboBoxLanguage.Items.Count; i++)
            {
                if ((comboBoxLanguage.Items[i] as System.Globalization.CultureInfo).LCID == core.SelectedLanguage.LCID)
                {
                    comboBoxLanguage.SelectedIndex = i;
                    break;
                }
            }
            if (comboBoxLanguage.SelectedIndex < 0)
            {
                comboBoxLanguage.SelectedIndex = 0;
            }
        }
Esempio n. 27
0
        public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            if (PluginSettings.Instance == null)
            {
                var p = new PluginSettings(core);
            }

            AddAction(ACTION_SHOW);
            AddAction(ACTION_SEP);

            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ERROR));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_ASKSAVEDATA));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(STR_WARNING));

            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_AVAILABLE));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_COPYCURRENT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_COPYDEFAULT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_CURRENT));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_ENABLESTARTUP));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_FOLDER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_OK));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_SETTINGSFOLDER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_SWITCH));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_TARGETSETTINGSFOLDER));
            core.LanguageItems.Add(new Framework.Data.LanguageItem(SettingsFolderForm.STR_TITLE));

            return await base.InitializeAsync(core);
        }
Esempio n. 28
0
 void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (this.Visible)
     {
         UpdateView();
     }
 }
Esempio n. 29
0
        public System.Collections.Generic.IEnumerable<TNS.Db.Person> GetList(Framework.Core.Model.PageInfo pageInfo)
        {
            //创建一个MySqlCommand对象
            MySqlCommand cmd = new MySqlCommand();

            try
            {
                int startPageIndex = pageInfo.PageIndex * pageInfo.PageSize;
                int endPageIndex = (pageInfo.PageIndex + 1) * pageInfo.PageSize;

                string sql = string.Format(@"SELECT personId,firstName,secondName,comments FROM Person LIMIT {0} , {1} ", startPageIndex, endPageIndex);

                //调用 PrepareCommand 方法,对 MySqlCommand 对象设置参数
                MySqlHelper.PrepareCommand(cmd, null, CommandType.Text, sql, null);
                //调用 MySqlCommand  的 ExecuteReader 方法
                MySqlDataAdapter adapter = new MySqlDataAdapter();
                adapter.SelectCommand = cmd;
                DataSet ds = new DataSet();

                adapter.Fill(ds);

                return TNS.Db.Util.ConvertHelper.DataSetToEntityList<Person>(ds, 0);
            }
            catch (Exception e)
            {
                MySqlHelper.CloseDBConnection();
                throw e;
            }
            finally
            {
                //清除参数
                cmd.Parameters.Clear();

            }
        }
Esempio n. 30
0
 public string GetImagePath(Framework.Data.ImageSize imageSize, Framework.Data.GeocacheType geocacheType)
 {
     string result;
     string fn;
     if (imageSize == Framework.Data.ImageSize.Map)
     {
         fn = string.Format("{0}.png", geocacheType.ID);
     }
     else
     {
         fn = string.Format("{0}.gif", geocacheType.ID);
     }
     result = Path.Combine(new string[] { _baseImagePath, imageSize.ToString(),"cachetypes", fn });
     if (!File.Exists(result))
     {
         if (imageSize != Framework.Data.ImageSize.Default)
         {
             result = Path.Combine(new string[] { _baseImagePath, imageSize.ToString(), "cachetypes", fn });
             if (!File.Exists(result))
             {
                 result = null;
             }
         }
         else
         {
             result = null;
         }
     }
     return result;
 }
Esempio n. 31
0
        /// <summary>
        /// Returns the sources matching the specified platform and framework settings.
        /// For incompatible sources, warning is added to incompatibleSettingWarning.
        /// </summary>
        public static IEnumerable <String> FilterCompatibleSources(Architecture chosenPlatform, Framework chosenFramework, IDictionary <String, Architecture> sourcePlatforms, IDictionary <String, Framework> sourceFrameworks, out String incompatibleSettingWarning)
        {
            incompatibleSettingWarning = string.Empty;
            List <String> compatibleSources = new List <String>();
            StringBuilder warnings          = new StringBuilder();

            warnings.AppendLine();
            bool incompatiblityFound = false;

            foreach (var source in sourcePlatforms.Keys)
            {
                Architecture actualPlatform        = sourcePlatforms[source];
                Framework    actualFramework       = sourceFrameworks[source];
                bool         isSettingIncompatible = IsSettingIncompatible(actualPlatform, chosenPlatform, actualFramework, chosenFramework);
                if (isSettingIncompatible)
                {
                    string incompatiblityMessage;
                    var    onlyFileName = Path.GetFileName(source);
                    // Add message for incompatible sources.
                    incompatiblityMessage = string.Format(CultureInfo.CurrentCulture, OMResources.SourceIncompatible, onlyFileName, actualFramework.Version, actualPlatform);

                    warnings.AppendLine(incompatiblityMessage);
                    incompatiblityFound = true;
                }
                else
                {
                    compatibleSources.Add(source);
                }
            }

            if (incompatiblityFound)
            {
                incompatibleSettingWarning = string.Format(CultureInfo.CurrentCulture, OMResources.DisplayChosenSettings, chosenFramework, chosenPlatform, warnings.ToString(), multiTargettingForwardLink);
            }

            return(compatibleSources);
        }
Esempio n. 32
0
 public TrailingPrice(Framework framework, SmartQuant.Strategy strategy)
 {
     this.framework = framework;
     this.strategy  = strategy;
 }
Esempio n. 33
0
 void OnDestroy()
 {
     Framework.UnregisterEvent(ThisGameEvent.SetBattlePlayer, EventSetBattlePlayer);
 }
 /// <summary>Creates a new settings dialog</summary>
 public SettingsDialog(Framework sample)
 {
     parent      = sample;
     windowWidth = Framework.DefaultSizeWidth; windowHeight = Framework.DefaultSizeHeight;
     CreateControls();
 }
Esempio n. 35
0
 public static AgentMap *Instance() => Framework.Instance()->GetUiModule()->GetAgentModule()->GetAgentMap();
 public static IJob With(this IJob job, Framework framework) => job.With(j => j.Framework            = framework);
Esempio n. 37
0
        async void Dosth()
        {
            await Framework.GetEnv(EnvironmentType.Ev0).modules.Coroutine.StartCoroutine(wait2());

            Log.L("all end");
        }
Esempio n. 38
0
        public XappController(IInvoker aInvoker, IHelper aHelper, INetworkManager aNetworkManager, Preferences aPreferences, PageBase aPageSettings, IUpdateListener aUpdateListener)
        {
            iNetworkManager = aNetworkManager;
            iNetworkManager.AdapterListChanged += HandleAdapterListChanged;

            iFramework = new Framework <TrackerSession>(OpenHome.Xen.Environment.AppPath + "/presentation");
            iFramework.AddCss("css/global.css");

            iRepeater = new CpDeviceReprogramListRepeater();

            iCache = new FirmwareCache(aHelper.DataPath.FullName);

            VersionInfoReader.EUpdateType updateTypes = VersionInfoReader.EUpdateType.Stable;
            if (aPreferences.FirmwareBeta)
            {
                updateTypes |= VersionInfoReader.EUpdateType.Beta;
            }
            iVersionReader = new VersionInfoReader(VersionInfoReader.kDefaultUpdatesUrl, 1000 * 60 * 60 * 12, aHelper.DataPath.FullName, updateTypes, iCache);

            XappView mainView = new XappView("main", OpenHome.Xen.Environment.AppPath + "/presentation");

            iMainPage = new MainPage(aInvoker, iNetworkManager.AdapterList.Adapter, aPreferences, aUpdateListener, iRepeater, "main", mainView.Id);
            iFramework.AddPage(iMainPage);
            iFramework.AddView(mainView);

            XappView updateView = new XappView("update", OpenHome.Xen.Environment.AppPath + "/presentation");

            iUpdatePage = new UpdatePage(aInvoker, iNetworkManager.AdapterList.Adapter, aPreferences, aUpdateListener, iRepeater, iCache, iVersionReader, "update", updateView.Id);
            iUpdatePage.NumUpdateableChanged += HandleNumUpdateableChanged;
            iFramework.AddPage(iUpdatePage);
            iFramework.AddView(updateView);

            XappView settingsView = new XappView(aPageSettings.Id, OpenHome.Xen.Environment.AppPath + "/presentation");

            iSettingsPage = aPageSettings;
            iFramework.AddPage(iSettingsPage);
            iFramework.AddView(settingsView);

            XappView diagnosticsView = new XappView("diagnostics", OpenHome.Xen.Environment.AppPath + "/presentation");

            iDiagnosticsPage = new DiagnosticsPage(aInvoker, aHelper, aPreferences, "diagnostics", diagnosticsView.Id);
            iDiagnosticsPage.NumDiagnosticsChanged += HandleNumDiagnosticsChanged;
            iFramework.AddPage(iDiagnosticsPage);
            iFramework.AddView(diagnosticsView);

            XappView advancedView = new XappView("advanced", OpenHome.Xen.Environment.AppPath + "/presentation");

            iAdvancedPage = new AdvancedPage(aInvoker, iNetworkManager.AdapterList.Adapter, aUpdateListener, iRepeater, iVersionReader, "advanced", advancedView.Id);
            iFramework.AddPage(iAdvancedPage);
            iFramework.AddView(advancedView);


            XappView aboutView = new XappView("about", OpenHome.Xen.Environment.AppPath + "/presentation");

            iAboutPage = new AboutPage(aInvoker, aHelper, "about", aboutView.Id);
            iFramework.AddPage(iAboutPage);
            iFramework.AddView(aboutView);

            iWebServer = new WebServer(iFramework);

            iVersionReader.Start();
        }
Esempio n. 39
0
 public void OnFrameworkCleared(Framework framework) => OnEvent(new OnFrameworkCleared(framework));
Esempio n. 40
0
        /// <summary>
        /// Updates the run settings XML with the specified values.
        /// </summary>
        /// <param name="runSettingsDocument"> The XmlDocument of the XML. </param>
        /// <param name="architecture"> The architecture. </param>
        /// <param name="framework"> The framework. </param>
        /// <param name="resultsDirectory"> The results directory. </param>
        public static void UpdateRunSettingsWithUserProvidedSwitches(XmlDocument runSettingsDocument, Architecture architecture, Framework framework, string resultsDirectory)
        {
            var runSettingsNavigator = runSettingsDocument.CreateNavigator();

            ValidateRunConfiguration(runSettingsNavigator);

            // when runsettings specifies platform, that takes precedence over the user specified platform via command line arguments.
            var    shouldUpdatePlatform = true;
            string nodeXml;

            TryGetPlatformXml(runSettingsNavigator, out nodeXml);
            if (!string.IsNullOrEmpty(nodeXml))
            {
                architecture         = (Architecture)Enum.Parse(typeof(Architecture), nodeXml, true);
                shouldUpdatePlatform = false;
            }

            // when runsettings specifies framework, that takes precedence over the user specified input framework via the command line arguments.
            var shouldUpdateFramework = true;

            TryGetFrameworkXml(runSettingsNavigator, out nodeXml);

            if (!string.IsNullOrEmpty(nodeXml))
            {
                framework             = Framework.FromString(nodeXml);
                shouldUpdateFramework = false;
            }

            EqtTrace.Verbose("Using effective platform:{0} effective framework:{1}", architecture, framework);

            // check if platform is compatible with current system architecture.
            VerifyCompatibilityWithOSArchitecture(architecture);

            // Check if inputRunSettings has results directory configured.
            var hasResultsDirectory = runSettingsDocument.SelectSingleNode(ResultsDirectoryNodePath) != null;

            // Regenerate the effective settings.
            if (shouldUpdatePlatform || shouldUpdateFramework || !hasResultsDirectory)
            {
                UpdateRunConfiguration(runSettingsDocument, architecture, framework, resultsDirectory);
            }
        }
        private async Task OnProjectTypeSelectedAsync()
        {
            await SafeThreading.JoinableTaskFactory.SwitchToMainThreadAsync();

            await Framework.LoadDataAsync(ProjectType.Selected.Name, Platform);
        }
Esempio n. 42
0
 public DPO1_Strategy(Framework framework, string name)
     : base(framework, name)
 {
 }
Esempio n. 43
0
 public RuntimeConfig WithFramework(Framework framework)
 {
     _frameworks.Add(framework);
     return(this);
 }
Esempio n. 44
0
 public EventServer(Framework framework, EventBus bus)
 {
     this.framework = framework;
     this.bus       = bus;
 }
Esempio n. 45
0
        // decide if we are entering or exiting a long or short trade
        // different criteria can be used for each condition
        private void DecisionFunction()
        {
            switch (Framework.Account.InTrade())
            {
            // if we are not in a trade, see to enter long or short
            case 0:
            {
                // seems like a repetitive check
                if (Framework.Account.InTrade() == 0)
                {
                    if (EntryCriteriaLong())
                    {
                        Framework.Account.EnterTrade(1);
                        // set stops or trailing stops as appropriate
                        Framework.Account.SetTrailingStop(0.0008);
                    }
                }

                // now is not a repetitive check since
                // EntryCriteriaLong might have entered a trade
                // so check again
                if (Framework.Account.InTrade() == 0)
                {
                    if (EntryCriteriaShort())
                    {
                        Framework.Account.EnterTrade(1);
                        // set stops or trailing stops as appropriate
                        Framework.Account.SetTrailingStop(0.0008);
                    }
                }
                break;
            }

            // if we are currently long, look for a long exit strategy
            case 1:
            {
                if (ExitCriteriaLong())
                {
                    Framework.Account.ExitTrade();
                    // exit or flip trade
                    //Framework.Account.EnterTrade(-1);
                }
                break;
            }

            // if we are currently short, look for a short exit strategy
            case -1:
            {
                if (ExitCriteriaShort())
                {
                    Framework.Account.ExitTrade();
                    //Framework.Account.EnterTrade(1);
                }
                break;
            }
            }

            // extract values from indicators and account
            // and log them to a file (used to create a graph with a separate app)
            double logInTrade = Framework.Account.InTrade();
            double logMargin  = Framework.Account.GetAccount().C;

            // write monitored valued to the numerical output file
            string Value = IndicatorDump.GetValues();

            Value = logInTrade + "," + logMargin + "," + Value;
            Framework.WriteGraphLine(Value);
        }
Esempio n. 46
0
 public RuntimeConfig WithIncludedFramework(Framework framework)
 {
     _includedFrameworks.Add(framework);
     return(this);
 }
Esempio n. 47
0
 public StrategyManager(Framework framework)
 {
     throw new System.NotImplementedException();
 }
        public IActionResult Create([FromBody] Framework framework)
        {
            var newFramework = _logic.Create(framework);

            return(newFramework != null ? (IActionResult) new OkObjectResult(newFramework) : new NotFoundResult());
        }
Esempio n. 49
0
 private StrategyServer(Framework framework, Strategy strategy)
 {
     _framework = framework;
     _strategy = strategy;
     _databasePath = GetDefaultDatabasePath();
 }
Esempio n. 50
0
 public AssemblyResolvingImpl(Framework framework)
 {
     this.framework = framework;
     resolverHooks  = new List <IAssemblyResolverHook>();
 }
        private void FrameworkOnUpdateSetup(Framework framework)
        {
            try
            {
                var parameterWidget = Common.GetUnitBase("_ParameterWidget");
                if (parameterWidget == null)
                {
                    return;
                }
                if (parameterWidget->UldManager.LoadedState != 3)
                {
                    return;
                }
                if (!parameterWidget->IsVisible)
                {
                    return;
                }
                var hpGaugeBar = ((AtkComponentNode *)parameterWidget->UldManager.NodeList[2]);
                var hpNineGrid = (AtkNineGridNode *)hpGaugeBar->Component->UldManager.NodeList[3];
                if (hpGaugeBar->Component->UldManager.NodeListCount == 7)
                {
                    // Create Nodes
                    UiHelper.ExpandNodeList(hpGaugeBar, 2);

                    shieldGrid = UiHelper.CloneNode(hpNineGrid);
                    //shieldGrid->AtkResNode.NodeID = NodeSlideCastMarker;
                    hpGaugeBar->Component->UldManager.NodeList[6]->PrevSiblingNode = (AtkResNode *)shieldGrid;
                    shieldGrid->AtkResNode.NextSiblingNode = hpGaugeBar->Component->UldManager.NodeList[6];
                    shieldGrid->AtkResNode.ParentNode      = (AtkResNode *)hpGaugeBar;
                    hpGaugeBar->Component->UldManager.NodeList[hpGaugeBar->Component->UldManager.NodeListCount++] =
                        (AtkResNode *)shieldGrid;
                    shieldGrid->AtkResNode.MultiplyRed   = 255;
                    shieldGrid->AtkResNode.MultiplyGreen = 255;
                    shieldGrid->AtkResNode.MultiplyBlue  = 0;
                    shieldGrid->AtkResNode.AddRed        = ushort.MaxValue;
                    shieldGrid->AtkResNode.AddGreen      = ushort.MaxValue;
                    shieldGrid->AtkResNode.AddBlue       = ushort.MaxValue;
                    shieldGrid->PartID              = 5;
                    shieldGrid->AtkResNode.Width    = 0;
                    shieldGrid->AtkResNode.Flags_2 |= 1;

                    shieldGridOver = UiHelper.CloneNode(hpNineGrid);
                    shieldGrid->AtkResNode.PrevSiblingNode     = (AtkResNode *)shieldGridOver;
                    shieldGridOver->AtkResNode.NextSiblingNode = (AtkResNode *)shieldGrid;
                    shieldGridOver->AtkResNode.ParentNode      = (AtkResNode *)hpGaugeBar;
                    hpGaugeBar->Component->UldManager.NodeList[hpGaugeBar->Component->UldManager.NodeListCount++] =
                        (AtkResNode *)shieldGridOver;
                    shieldGridOver->AtkResNode.MultiplyRed   = 255;
                    shieldGridOver->AtkResNode.MultiplyGreen = 255;
                    shieldGridOver->AtkResNode.MultiplyBlue  = 0;
                    shieldGridOver->AtkResNode.AddRed        = ushort.MaxValue;
                    shieldGridOver->AtkResNode.AddGreen      = ushort.MaxValue;
                    shieldGridOver->AtkResNode.AddBlue       = ushort.MaxValue;
                    shieldGridOver->PartID              = 5;
                    shieldGridOver->AtkResNode.Width    = 0;
                    shieldGridOver->AtkResNode.Flags_2 |= 1;
                }

                shieldGrid                = (AtkNineGridNode *)hpGaugeBar->Component->UldManager.NodeList[7];
                shieldGridOver            = (AtkNineGridNode *)hpGaugeBar->Component->UldManager.NodeList[8];
                Service.Framework.Update -= FrameworkOnUpdateSetup;
                Service.Framework.Update += FrameworkOnUpdate;
            }
            catch (Exception ex)
            {
                SimpleLog.Error(ex);
            }
        }
Esempio n. 52
0
 public SubscriptionManager(Framework framework)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 53
0
 /// <summary>
 ///     Process a chat queue.
 /// </summary>
 public void UpdateQueue(Framework framework)
 {
     throw new NotImplementedException();
 }
Esempio n. 54
0
 public ListAssembliesCommand(Framework framework)
 {
     this.framework = framework;
 }
 public static AgentRetainerList *Instance() => (AgentRetainerList *)Framework.Instance()->GetUiModule()->GetAgentModule()->GetAgentByInternalId(AgentId.RetainerList);
Esempio n. 56
0
 public EventFilter(Framework framework)
 {
     this.framework = framework;
 }
Esempio n. 57
0
 public BundleManager(Framework framework)
 {
     Framework = framework;
 }
 public static void AddFileInstrument(Framework framework, string path, bool save = false, bool useFileName = true)
 {
     var list = new BacktestInstrumentServer(framework, path, save, true).LoadFiles();
 }
Esempio n. 59
0
 public BaseMap(Framework framework, SingleProvider provider)
 {
     this.framework = framework;
     this.provider  = provider;
 }
Esempio n. 60
0
 public static AgentInventoryContext *Instance()
 {
     return((AgentInventoryContext *)Framework.Instance()->GetUiModule()->GetAgentModule()->GetAgentByInternalId(
                AgentId.InventoryContext));
 }