private void _003CInitEvent_003Eb__8(Task <bool> task) { Action action = null; _003C_003Ec__DisplayClass12 _003C_003Ec__DisplayClass = new _003C_003Ec__DisplayClass12(); _003C_003Ec__DisplayClass.task = task; _003C_003Ec__DisplayClass._003C_003E4__this = this; try { Dispatcher dispatcher = base.Dispatcher; if (action == null) { action = new Action(_003C_003Ec__DisplayClass._003CInitEvent_003Eb__9); } dispatcher.BeginInvoke(action); if (_003C_003Ec__DisplayClass.task.Result) { try { _003C_003Ec__DisplayClass14 _003C_003Ec__DisplayClass2 = new _003C_003Ec__DisplayClass14(); _003C_003Ec__DisplayClass2.CS_0024_003C_003E8__locals13 = _003C_003Ec__DisplayClass; _003C_003Ec__DisplayClass2.socketClient = Singleton_Socket.GetInstance(MeetingID, UserID, UserName, false); Task.Factory.StartNew(new Action(_003C_003Ec__DisplayClass2._003CInitEvent_003Eb__a)); } catch (Exception ex) { LogTool.Debug(ex); } } } catch (Exception ex2) { LogTool.Debug(ex2); } }
private void btnOpen_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { MouseTool.ShowLoading(); try { _003C_003Ec__DisplayClass14 _003C_003Ec__DisplayClass = new _003C_003Ec__DisplayClass14(); _003C_003Ec__DisplayClass._003C_003E4__this = this; ClickOnceTool.GetFilePath(); _003C_003Ec__DisplayClass._bookPath = lawItem.UnZipFilePath; _003C_003Ec__DisplayClass._bookId = ""; _003C_003Ec__DisplayClass._account = ""; _003C_003Ec__DisplayClass._userName = ""; _003C_003Ec__DisplayClass._email = ""; _003C_003Ec__DisplayClass._meetingId = ""; _003C_003Ec__DisplayClass._watermark = ""; _003C_003Ec__DisplayClass._dbPath = Path.Combine(ClickOnceTool.GetDataPath(), Settings.Default.bookInfo_Path); _003C_003Ec__DisplayClass._isSync = false; _003C_003Ec__DisplayClass._isSyncOwner = false; _003C_003Ec__DisplayClass._webServiceUrl = WsTool.GetUrl() + "/AnnotationUpload"; _003C_003Ec__DisplayClass._socketMessage = ""; _003C_003Ec__DisplayClass.cbBooksData = null; _003C_003Ec__DisplayClass.Home_Window = Enumerable.FirstOrDefault(Enumerable.OfType <Home>(Application.Current.Windows)); _003C_003Ec__DisplayClass.Home_Window.CloseAllWindow("", true); Task.Factory.StartNew(new Action(_003C_003Ec__DisplayClass._003CbtnOpen_MouseLeftButtonDown_003Eb__12)); } catch (Exception ex) { LogTool.Debug(ex); } MouseTool.ShowArrow(); }
public File_DownloadItemViewModel GetInList(string MeetingDataDownloadFileFile_ID) { Func <File_DownloadItemViewModel, bool> func = null; _003C_003Ec__DisplayClass14 _003C_003Ec__DisplayClass = new _003C_003Ec__DisplayClass14(); _003C_003Ec__DisplayClass.MeetingDataDownloadFileFile_ID = MeetingDataDownloadFileFile_ID; File_DownloadItemViewModel file_DownloadItemViewModel = new File_DownloadItemViewModel(); lock (this) { if (NowFileItem != null && NowFileItem.ID.Equals(_003C_003Ec__DisplayClass.MeetingDataDownloadFileFile_ID)) { return(NowFileItem); } List <File_DownloadItemViewModel> source = list; if (func == null) { func = new Func <File_DownloadItemViewModel, bool>(_003C_003Ec__DisplayClass._003CGetInList_003Eb__12); } return(Enumerable.FirstOrDefault(Enumerable.Where(source, func))); } }