private void AddTextualServer(ServerInfo theServerInfo) { this.Dispatcher.BeginInvoke(new System.Windows.Forms.MethodInvoker(delegate() { svwpServers.Visibility = Visibility.Collapsed; svspServers.Visibility = Visibility.Visible; TextualServerControl theControl = new TextualServerControl(theServerInfo, myUserPrefs, false, myVariables); theControl.DataContext = theServerInfo; theControl.Checked += new RoutedEventHandler(theControl_Checked); theControl.Margin = thck; spServers.Children.Add(theControl); }), System.Windows.Threading.DispatcherPriority.Normal); }
private void AddTextualServer(ServerInfo theServerInfo) { this.Dispatcher.BeginInvoke(new System.Windows.Forms.MethodInvoker(delegate() { svwpServers.Visibility = Visibility.Collapsed; svspServers.Visibility = Visibility.Visible; TextualServerControl theControl = new TextualServerControl(theServerInfo, myUserPrefs, true, myTextVariables); theControl.DataContext = theServerInfo; theControl.Checked += new RoutedEventHandler(theControl_Checked); theControl.MouseDoubleClick += new MouseButtonEventHandler(theControl_MouseDoubleClick); theControl.Margin = thck; spServers.Children.Add(theControl); if (myUserPrefs.DefaultServer == theServerInfo.ServerId) { theControl.IsChecked = true; theControl.BringIntoView(); } }), System.Windows.Threading.DispatcherPriority.Normal); }
private void AddTextualServer(ServerInfo theServerInfo) { this.Dispatcher.BeginInvoke(new System.Windows.Forms.MethodInvoker(delegate() { svwpServers.Visibility = Visibility.Collapsed; svspServers.Visibility = Visibility.Visible; TextualServerControl theControl = new TextualServerControl(theServerInfo, myUserPrefs, false, myVariables); theControl.DataContext = theServerInfo; theControl.Checked += new RoutedEventHandler(theControl_Checked); theControl.Margin = thck; spServers.Children.Add(theControl); }), System.Windows.Threading.DispatcherPriority.Normal); }
private void AddTextualServer(ServerInfo theServerInfo) { this.Dispatcher.BeginInvoke(new System.Windows.Forms.MethodInvoker(delegate() { svwpServers.Visibility = Visibility.Collapsed; svspServers.Visibility = Visibility.Visible; TextualServerControl theControl = new TextualServerControl(theServerInfo, myUserPrefs, true, myTextVariables); theControl.DataContext = theServerInfo; theControl.Checked += new RoutedEventHandler(theControl_Checked); theControl.MouseDoubleClick += new MouseButtonEventHandler(theControl_MouseDoubleClick); theControl.Margin = thck; spServers.Children.Add(theControl); if (myUserPrefs.DefaultServer == theServerInfo.ServerId) { theControl.IsChecked = true; theControl.BringIntoView(); } }), System.Windows.Threading.DispatcherPriority.Normal); }