public void UpdatePasswordForAccount(string userName, string newPassword) { try { string UpdateQuery = "update tb_LinkedInAccount set Password='******' WHERE UserName='******';"; DataBaseHandler.UpdateQuery(UpdateQuery, "tb_LinkedInAccount"); } catch (Exception ex) { Console.WriteLine(ex.StackTrace); //AlibabaScaper.GlobusFileHelper.AppendStringToTextfileNewLine("InsertQuery error" +ex+ ex.StackTrace, MainFrm.Error); } }
public void UpdateSettingData(string module, string filetype, string filepath) { try { string strTable = "tb_Setting"; string strQuery = "UPDATE tb_Setting SET Module='" + module + "', FilePath='" + filepath + "' WHERE FileType='" + filetype + "'"; DataBaseHandler.UpdateQuery(strQuery, strTable); } catch (Exception) { } }
public void UpdateFBAccount(string Usernaem, string password, string proxiaddress, string proxyport, string proxyName, string proxypassword) { try { string strTable = "tb_FBAccount"; string strQuery = "UPDATE tb_FBAccount SET Password='******', ProxyAddress='" + proxiaddress + "', ProxyPort='" + proxyport + "', ProxyUserName='******', ProxyPassword='******' WHERE UserName='******'"; DataBaseHandler.UpdateQuery(strQuery, strTable); } catch (Exception) { throw; } }