Exemple #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var wnd = new SecurityPickerWindow
            {
                SecurityProvider = SecurityProvider,
                SelectionMode    = DataGridSelectionMode.Single
            };

            if (wnd.ShowModal(this))
            {
                SelectedSecurity = wnd.SelectedSecurity;
            }
        }
		protected override void OnClick()
		{
			base.OnClick();

			var wnd = new SecurityPickerWindow
			{
				SecurityProvider = ConfigManager.GetService<ISecurityProvider>(),
				//SelectionMode = DataGridSelectionMode.Single
			};
			wnd.ExcludeSecurities.Add(Core.Extensions.GetAllSecurity());
			wnd.SelectedSecurities.AddRange(SelectedSecurities);

			if (!wnd.ShowModal(this))
				return;

			SelectedSecurities = wnd.SelectedSecurities.ToArray();
		}
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var wnd = new SecurityPickerWindow
            {
				SecurityProvider = GetSecurityProvider(),
				SelectionMode = DataGridSelectionMode.Single
            };

            if (wnd.ShowModal(this))
            {
                SelectedSecurity = wnd.SelectedSecurity;
            }
        }