Example #1
0
 private void WHOISShow_Click(object sender, EventArgs e)
 {
     LookupPanel.Visible = true;
     LookupPanel.BringToFront();
     NetworkMonitorPanel.Visible = false;
     PortScannerPanel.Visible    = false;
 }
Example #2
0
		void IPersistable.Save(SettingsStorage storage)
		{
			if (DrivePanel.SelectedDrive != null)
				storage.SetValue("Drive", DrivePanel.SelectedDrive.Path);

			storage.SetValue("StorageFormat", DrivePanel.StorageFormat.To<string>());

			storage.SetValue("MarketData", MarketData.Save());
			storage.SetValue("SecurityPicker", SecurityPicker.Save());
			storage.SetValue("LookupPanel", LookupPanel.Save());
		}
Example #3
0
		void IPersistable.Load(SettingsStorage storage)
		{
			if (storage.ContainsKey("Drive"))
				DrivePanel.SelectedDrive = DriveCache.Instance.GetDrive(storage.GetValue<string>("Drive"));

			DrivePanel.StorageFormat = storage.GetValue<StorageFormats>("StorageFormat");

			MarketData.Load(storage.GetValue<SettingsStorage>("MarketData"));
			SecurityPicker.Load(storage.GetValue<SettingsStorage>("SecurityPicker"));
			LookupPanel.Load(storage.GetValue<SettingsStorage>("LookupPanel"));
		}
Example #4
0
        private void SecuritiesWindowEx_OnLoaded(object sender, RoutedEventArgs e)
        {
            if (IsLookup)
            {
                SecuritiesAll.Title      = LocalizedStrings.Str3255;
                SecuritiesSelected.Title = LocalizedStrings.Str3256;

                ConfigManager.GetService <IStudioCommandService>().Register <LookupSecuritiesResultCommand>(this, false, cmd =>
                {
                    foreach (var security in cmd.Securities)
                    {
                        // если у нас подключено несколько коннекторов одновременно, то инструменты могут дублироваться
                        SecuritiesAll.Securities.TryAdd(security);
                    }
                });
            }
            else
            {
                LookupPanel.SetVisibility(false);
            }
        }