Пример #1
0
 public ConfigAdwordEdit()
 {
     InitializeComponent();
     APIURI = Common.getURI("APIURI");
     dtGridAdwordConfig.AutoGenerateColumns = false;
     rqAPI = new AdwordRequest();
     _googleAdwordService = new GoogleAdwordService();
     //string a=GetIPAddress();
 }
Пример #2
0
        public BrowerGecko()
        {
            InitializeComponent();

            rqAdword = new AdwordRequest();
            _googleAdwordService = new GoogleAdwordService();
             excutePath= Path.GetDirectoryName(Application.ExecutablePath);

            Xpcom.Initialize(excutePath + @"\Gecko");
            //Xpcom.Initialize(@"F:\Sample\Gecko33\xulrunner-sdk\bin");
            nsIBrowserHistory historyMan = Xpcom.GetService<nsIBrowserHistory>(Gecko.Contracts.NavHistoryService);
            historyMan = Xpcom.QueryInterface<nsIBrowserHistory>(historyMan);
            historyMan.RemoveAllPages();
            // https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/imgICache
            nsICookieManager CookieMan;
            CookieMan = Xpcom.GetService<nsICookieManager>("@mozilla.org/cookiemanager;1");
            CookieMan = Xpcom.QueryInterface<nsICookieManager>(CookieMan);
            CookieMan.RemoveAll();
            IPPublic = getPublicIP();
            WriteLog(IPPublic.ToString());
            WriteLogIP("Activated");
        }
Пример #3
0
        public BrowerGecko()
        {
            InitializeComponent();

            rqAdword             = new AdwordRequest();
            _googleAdwordService = new GoogleAdwordService();
            excutePath           = Path.GetDirectoryName(Application.ExecutablePath);

            Xpcom.Initialize(excutePath + @"\Gecko");
            //Xpcom.Initialize(@"F:\Sample\Gecko33\xulrunner-sdk\bin");
            nsIBrowserHistory historyMan = Xpcom.GetService <nsIBrowserHistory>(Gecko.Contracts.NavHistoryService);

            historyMan = Xpcom.QueryInterface <nsIBrowserHistory>(historyMan);
            historyMan.RemoveAllPages();
            // https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/imgICache
            nsICookieManager CookieMan;

            CookieMan = Xpcom.GetService <nsICookieManager>("@mozilla.org/cookiemanager;1");
            CookieMan = Xpcom.QueryInterface <nsICookieManager>(CookieMan);
            CookieMan.RemoveAll();
            IPPublic = getPublicIP();
            WriteLog(IPPublic.ToString());
            WriteLogIP("Activated");
        }
Пример #4
0
 public ConfigAdword()
 {
     InitializeComponent();
     _googleAdwordService = new GoogleAdwordService();
     string a = GetIPAddress();
 }
 public GoogleAdwordController()
 {
     _googleAdwordService = new GoogleAdwordService();
 }
Пример #6
0
 public GoogleAdwordController()
 {
     _googleAdwordService = new GoogleAdwordService();
 }
Пример #7
0
 public ConfigAdword()
 {
     InitializeComponent();
        _googleAdwordService=new GoogleAdwordService();
     string a = GetIPAddress();
 }