//----< load queryrequest processing into dispatcher dictionary >------ private void DispatcherLoadQueryRequest() { Action <CsMessage> queryrequest = (CsMessage rcvMsg) => { Action clearFiles = () => { QueryControl.clearFiles(); }; Dispatcher.Invoke(clearFiles, new Object[] { }); var enumer = rcvMsg.attributes.GetEnumerator(); while (enumer.MoveNext()) { string key = enumer.Current.Key; if (key.Contains("hasname")) { Action <string> process = (string name) => { int i = 0; while (i < name.Length) { string s = ""; while (name[i] != '+') { s = s + name[i]; i++; } if (s != "") { QueryControl.addFile(s); } i++; } }; Dispatcher.Invoke(process, new Object[] { enumer.Current.Value }); } } }; addClientProc("queryrequest", queryrequest); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\..\MainWindow.xaml" ((WpfApp1.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: #line 21 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.TabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabControl_SelectionChanged); #line default #line hidden return; case 3: this.NavLocal = ((WpfApp1.LocalNavControl)(target)); return; case 4: this.CloseCheckin = ((WpfApp1.CloseCheckin)(target)); return; case 5: this.NavRemote = ((WpfApp1.RemoteNavControl)(target)); return; case 6: this.txtMsg1 = ((System.Windows.Controls.TextBox)(target)); #line 46 "..\..\..\MainWindow.xaml" this.txtMsg1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtMsg1_TextChanged); #line default #line hidden return; case 7: this.ConnectButton = ((System.Windows.Controls.Button)(target)); #line 47 "..\..\..\MainWindow.xaml" this.ConnectButton.Click += new System.Windows.RoutedEventHandler(this.Button_Click_Connect); #line default #line hidden return; case 8: this.QueryControl = ((WpfApp1.QueryControl)(target)); return; case 9: this.ConnectStatus = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 10: this.connectstatus = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }