public ConfigAdwordEdit() { InitializeComponent(); APIURI = Common.getURI("APIURI"); dtGridAdwordConfig.AutoGenerateColumns = false; rqAPI = new AdwordRequest(); _googleAdwordService = new GoogleAdwordService(); //string a=GetIPAddress(); }
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"); }