示例#1
0
        public frm_Main(ObservableCollection <LogEvent> LogEvents)
        {
            InitializeComponent();

            // Initialize Browser
            Xpcom.Initialize("Firefox");

            BrowserContainer browserContainer = new BrowserContainer()
            {
                Dock = DockStyle.Fill
            };

            this.splitContainerControl1.Panel2.Controls.Add(browserContainer);
            this.Browser = browserContainer.Browser;

            Browser.UseHttpActivityObserver   = true;
            Browser.ObserveHttpModifyRequest += Browser_ObserveHttpModifyRequest;
            Browser.DocumentCompleted        += Browser_DocumentCompleted;

            ResponseObserver responseObserver = new ResponseObserver();

            responseObserver.AuthResponseReceived   += ResponseObserver_AuthResponseReceived;
            responseObserver.SearchResponseReceived += ResponseObserver_SearchResponseReceived;;
            ObserverService.AddObserver(responseObserver);

            // Initialize Variables
            this.LogEvents       = LogEvents;
            this.countryWiseData = new Dictionary <string, List <ExportData> >();
        }
示例#2
0
 public static void RegisterPDFInterceptor()
 {
     ObserverService.AddObserver(PDFInterceptor.Instance);
 }