예제 #1
0
        public override void Load(SettingsStorage storage)
        {
            TradesGrid.Load(storage.GetValue <SettingsStorage>("GridSettings"));

            _securityIds.SyncDo(list =>
            {
                list.Clear();
                list.AddRange(storage.GetValue("Securities", ArrayHelper.Empty <string>()));
            });

            var alertSettings = storage.GetValue <SettingsStorage>("AlertSettings");

            if (alertSettings != null)
            {
                AlertBtn.Load(alertSettings);
            }

            VolumeFilter.Value = storage.GetValue <decimal?>("VolumeFilter");
        }
        public override void Load(SettingsStorage storage)
        {
            var gridSettings = storage.GetValue <SettingsStorage>("SecurityPicker");

            if (gridSettings != null)
            {
                SecurityPicker.Load(gridSettings);
            }

            var alertSettings = storage.GetValue <SettingsStorage>("AlertSettings");

            if (alertSettings != null)
            {
                AlertBtn.Load(alertSettings);
            }

            _securityIds.SyncDo(list =>
            {
                list.Clear();
                list.AddRange(storage.GetValue("Securities", ArrayHelper <string> .EmptyArray));
            });
        }
예제 #3
0
        public override void Load(SettingsStorage storage)
        {
            var gridSettings = storage.GetValue <SettingsStorage>("SecurityPicker");

            if (gridSettings != null)
            {
                SecurityPicker.Load(gridSettings);
            }

            var layout = storage.GetValue <string>("Layout");

            if (layout != null)
            {
                DockSite.LoadLayout(layout);
            }

            _securityIds.SyncDo(list =>
            {
                list.Clear();
                list.AddRange(storage.GetValue("Securities", ArrayHelper <string> .EmptyArray));
            });
        }
예제 #4
0
        //TODO: дописать логику загрузки состояния для DockSite
        public override void Load(SettingsStorage storage)
        {
            var gridSettings = storage.GetValue <SettingsStorage>("SecurityPicker");

            if (gridSettings != null)
            {
                SecurityPicker.Load(gridSettings);
            }

            var layout = storage.GetValue <string>("Layout");

            //if (layout != null)
            //	DockSite.LoadLayout(layout);

            _securityIds.SyncDo(list =>
            {
                list.Clear();
                list.AddRange(storage.GetValue("Securities", ArrayHelper.Empty <string>()));
            });

            SecurityPicker.SecurityProvider = ConfigManager.GetService <ISecurityProvider>();
        }