Пример #1
0
        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();
        }
Пример #2
0
        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();
        }