private void InitEvent() { LawDownloader instance = Singleton_LawDownloader.GetInstance(); Start_callback = (LawListCT_DownloadFileStart_Function)Delegate.Combine(Start_callback, new LawListCT_DownloadFileStart_Function(LawListCT_DownloadFileStart_Callback)); Progress_callback = (LawListCT_DownloadProgressChanged_Function)Delegate.Combine(Progress_callback, new LawListCT_DownloadProgressChanged_Function(LawListCT_DownloadProgressChanged_Callback)); Finish_callback = (LawListCT_DownloadFileCompleted_Function)Delegate.Combine(Finish_callback, new LawListCT_DownloadFileCompleted_Function(LawListCT_DownloadFileCompleted_Callback)); UnZip_callback = (LawListCT_UnZip_Function)Delegate.Combine(UnZip_callback, new LawListCT_UnZip_Function(LawListCT_UnZip_Callback)); UnZipError_callback = (LawListCT_UnZipError_Function)Delegate.Combine(UnZipError_callback, new LawListCT_UnZipError_Function(LawListCT_UnZipError_Callback)); GetBookVMs_ByMeetingFileCate_callback = new LawListCT_GetBookVMs_ByMeetingFileCate_Function(LawListCT_GetBookVMs_ByMeetingFileCate_Callback); instance.LawListCT_DownloadFileStart_Event += Start_callback; instance.LawListCT_DownloadProgressChanged_Event += Progress_callback; instance.LawListCT_DownloadFileCompleted_Event += Finish_callback; instance.LawListCT_UnZip_Event += UnZip_callback; instance.LawListCT_UnZipError_Event += UnZipError_callback; txtKeyword.MouseEnter += new MouseEventHandler(_003CInitEvent_003Eb__15); TextBox textBox = txtKeyword; if (CS_0024_003C_003E9__CachedAnonymousMethodDelegate17 == null) { CS_0024_003C_003E9__CachedAnonymousMethodDelegate17 = new MouseEventHandler(_003CInitEvent_003Eb__16); } textBox.MouseLeave += CS_0024_003C_003E9__CachedAnonymousMethodDelegate17; txtKeyword.KeyUp += new KeyEventHandler(txtKeyword_KeyUp); txtKeyword.Focus(); }
public LawRow(string UserID, string UserName, string UserPWD, bool IsLastRow, LawDataLaw lawDataLaw, LawListCT_HangTheDownloadEvent_Function callback1, LawListCT_IsAllLawRowFinished_AddInitUIFinished_Function callback2, LawListCT_GetBookVMs_ByMeetingFileCate_Function callback3) { InitializeComponent(); this.UserID = UserID; this.UserName = UserName; this.UserPWD = UserPWD; this.IsLastRow = IsLastRow; this.lawDataLaw = lawDataLaw; base.Loaded += new RoutedEventHandler(LawRow_Loaded); LawListCT_HangTheDownloadEvent_Event = callback1; LawListCT_IsAllLawRowFinished_AddInitUIFinished_Event = callback2; LawListCT_GetBookVMs_ByMeetingFileCate_Event = callback3; lawItem = new Law_DownloadItemViewModel(); }
public LawRow(string UserID, string UserName, string UserPWD , bool IsLastRow, LawDataLaw lawDataLaw , LawListCT_HangTheDownloadEvent_Function callback1 , LawListCT_IsAllLawRowFinished_AddInitUIFinished_Function callback2 , LawListCT_GetBookVMs_ByMeetingFileCate_Function callback3) { //MouseTool.ShowLoading(); InitializeComponent(); this.UserID = UserID; this.UserName = UserName; this.UserPWD = UserPWD; this.IsLastRow = IsLastRow; this.lawDataLaw = lawDataLaw; this.Loaded += LawRow_Loaded; this.LawListCT_HangTheDownloadEvent_Event = callback1; this.LawListCT_IsAllLawRowFinished_AddInitUIFinished_Event = callback2; this.LawListCT_GetBookVMs_ByMeetingFileCate_Event = callback3; this.lawItem = new Law_DownloadItemViewModel(); //MouseTool.ShowArrow(); }
private void InitEvent() { LawDownloader lawDownloader = Singleton_LawDownloader.GetInstance(); Start_callback += new LawListCT_DownloadFileStart_Function(LawListCT_DownloadFileStart_Callback); Progress_callback += new LawListCT_DownloadProgressChanged_Function(LawListCT_DownloadProgressChanged_Callback); Finish_callback += new LawListCT_DownloadFileCompleted_Function(LawListCT_DownloadFileCompleted_Callback); UnZip_callback += new LawListCT_UnZip_Function(LawListCT_UnZip_Callback); UnZipError_callback += new LawListCT_UnZipError_Function(LawListCT_UnZipError_Callback); GetBookVMs_ByMeetingFileCate_callback = new LawListCT_GetBookVMs_ByMeetingFileCate_Function(LawListCT_GetBookVMs_ByMeetingFileCate_Callback); lawDownloader.LawListCT_DownloadFileStart_Event += Start_callback; lawDownloader.LawListCT_DownloadProgressChanged_Event += Progress_callback; lawDownloader.LawListCT_DownloadFileCompleted_Event += Finish_callback; lawDownloader.LawListCT_UnZip_Event += UnZip_callback; lawDownloader.LawListCT_UnZipError_Event += UnZipError_callback; txtKeyword.MouseEnter += (sender, e) => { MouseTool.ShowIBeam(); txtKeyword.Focus(); }; txtKeyword.MouseLeave += (sender, e) => { MouseTool.ShowArrow(); }; //Keyboard.ClearFocus(); txtKeyword.KeyUp += txtKeyword_KeyUp; txtKeyword.Focus(); }