示例#1
0
        //protected override void OnClosed(EventArgs e)
        //{
        //    Progress.Stop();
        //    base.OnClosed(e);
        //}

        private void SelectSecurityBtn_SecuritySelected()
        {
            if (SelectedSecurity == null)
            {
                ExportBtn.IsEnabled = false;
            }
            else
            {
                ExportBtn.IsEnabled = true;
                UpdateTitle();
                DepthGrid.UpdateFormat(SelectedSecurity);
            }
        }
示例#2
0
        public override void Save(SettingsStorage storage)
        {
            base.Save(storage);

            storage.SetValue("DepthGrid", DepthGrid.Save());
            storage.SetValue("Depth", Depth.SelectedIndex);

            if (DepthGenerationInterval.Value != null)
            {
                storage.SetValue("DepthGenerationInterval", (int)DepthGenerationInterval.Value);
            }

            storage.SetValue("IsBuildFromOrderLog", IsBuildFromOrderLog.IsChecked == true);
        }
示例#3
0
        private void DisplayDepth()
        {
            var index = (int)QuotesSlider.Value;

            if (_loadedDepths.Count < (index + 1))
            {
                return;
            }

            var depth = _loadedDepths[index];

            DepthGrid.UpdateDepth(depth);
            DepthDate.Text = depth.ServerTime.ToString("yyyy.MM.dd HH:mm:ss.fff");
        }
示例#4
0
        public override void Save(SettingsStorage storage)
        {
            base.Save(storage);

            storage.SetValue("DepthGrid", DepthGrid.Save());
            storage.SetValue("Depth", Depth.SelectedIndex);

            if (DepthGenerationInterval.Value != null)
            {
                storage.SetValue("DepthGenerationInterval", (int)DepthGenerationInterval.Value);
            }

            storage.SetValue("BuildFrom", BuildFrom.SelectedIndex);
        }
示例#5
0
        public override void Load(SettingsStorage storage)
        {
            base.Load(storage);

            DepthGrid.Load(storage.GetValue <SettingsStorage>("DepthGrid"));
            Depth.SelectedIndex = storage.GetValue <int>("Depth");

            if (storage.ContainsKey("DepthGenerationInterval"))
            {
                DepthGenerationInterval.Value = storage.GetValue <int>("DepthGenerationInterval");
            }

            BuildFrom.SelectedIndex = storage.GetValue <int>("BuildFrom");
        }
示例#6
0
        public override void Load(SettingsStorage storage)
        {
            base.Load(storage);

            DepthGrid.Load(storage.GetValue <SettingsStorage>("DepthGrid"));
            Depth.SelectedIndex = storage.GetValue <int>("Depth");

            if (storage.ContainsKey("DepthGenerationInterval"))
            {
                DepthGenerationInterval.Value = storage.GetValue <int>("DepthGenerationInterval");
            }

            if (storage.ContainsKey("IsBuildFromOrderLog"))
            {
                IsBuildFromOrderLog.IsChecked = storage.GetValue <bool>("IsBuildFromOrderLog");
            }
        }