//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); } }
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); }
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"); }
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); }
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"); }
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"); } }