Пример #1
0
        public MainForm()
        {
            InitializeComponent();

            _hasRemindDialog = false;
            _currentChapterIndex = 0;
            _frmLoading = new LoadingForm();
            //_optForm = new OptionsManager();
            mailTree.OpenCategoryEvent += new Johnny.Novel.Controls.MailTree.MailTree.OpenCategoryEventHandler(mailTree_OpenCategoryEvent);
            mailTree.InitialNodes();
            mailTree.Select();

            SetViewMenuItems();
            SetTheme();

            //httphandler
            _requestHandler = new NovelRequestHandler(ConfigCtrl.GetProxy(), ConfigCtrl.GetDelay());
            _requestHandler.MessageChanged += new NovelBase.MessageChangedEventHandler(_requestHandler_MessageChanged);
            _requestHandler.NovelListFetched += new NovelRequestHandler.NovelListFetchedEventHandler(_requestHandler_NovelListFetched);
            _requestHandler.NovelChaptersFetched += new NovelRequestHandler.NovelChaptersFetchedEventHandler(_requestHandler_NovelChaptersFetched);
            _requestHandler.NovelContentFetched += new NovelRequestHandler.NovelContentFetchedEventHandler(_requestHandler_NovelContentFetched);
        }
Пример #2
0
 public DlgUserValidation()
 {
     InitializeComponent();
     _requestHandler = new NovelRequestHandler(ConfigCtrl.GetProxy(), ConfigCtrl.GetDelay());
     _requestHandler.ValidationFinished += new NovelRequestHandler.ValidationFinishedEventHandler(_requestHandler_ValidationFinished);
 }