public AccountInformation() { this._objRole = EnumCollection.eMemberPosition.Member; this._strLoginURL = ""; this._strAccountID = ""; this._strAccountPassword = ""; this._objAccountStatus = EnumCollection.eMemberStatus.Open; }
public AccountLoginManagerUI(string text1, string text2, string text3) { this._strSportBook = ""; this._strAccountLogin = ""; this._strAccountPassword = ""; this._isRoleEnabled = false; this._objAccountRole = EnumCollection.eMemberPosition.Member; this._strAccountLogin = text1.Trim(); this._strAccountPassword = text2.Trim(); this._strSportBook = text3; }
public AccountInformation(string text1, string text2, string text3) { this._objRole = EnumCollection.eMemberPosition.Member; this._strLoginURL = ""; this._strAccountID = ""; this._strAccountPassword = ""; this._objAccountStatus = EnumCollection.eMemberStatus.Open; this._strLoginURL = text1; this._strAccountID = text2; this._strAccountPassword = text3; }
public frmAccountLoginManagerUI(string text1, string text2, bool flag1, EnumCollection.eMemberPosition position1, string text3) { this._strSportBook = ""; this._strAccountLogin = ""; this._strAccountPassword = ""; this._isRoleEnabled = false; this._objAccountRole = EnumCollection.eMemberPosition.Member; this._strAccountLogin = text1; this._strAccountPassword = text2; this._isRoleEnabled = flag1; this._objAccountRole = position1; this._strSportBook = text3; }
protected void UpdateAccountLoginInfo(string text1, string text2, EnumCollection.eMemberPosition position1) { try { this._strAccountID = text1; this._strAccountPassword = text2; if (((position1 == EnumCollection.eMemberPosition.Agent) | (position1 == EnumCollection.eMemberPosition.Master)) | (position1 == EnumCollection.eMemberPosition.Senior)) { this._objRole = position1; } this.SaveAllSettingToFile(); } catch (Exception exception1) { ProjectData.SetProjectError(exception1); Exception exception = exception1; this._objErrorLogger.write(this._strName + ": EXCEPTION IN UpdateAccountLoginInfo: " + exception.Message); this.WriteProgramLogger(this._strName + ": EXCEPTION IN UpdateAccountLoginInfo: " + exception.Message); ProjectData.ClearProjectError(); } }
public void LoadSettingFromXML(string text1) { try { XmlReader reader = null; reader = new XmlTextReader(text1); while (reader.Read()) { if (((reader.NodeType != XmlNodeType.Element) || (reader.Name.ToUpper() != "Website".ToUpper())) || (reader.AttributeCount <= 0)) { continue; } League league = new League(); while (reader.MoveToNextAttribute()) { string str3 = reader.Name.ToUpper(); if (str3 == "AccountID".ToUpper()) { this._strAccountID = reader.Value; } else { if (str3 == "AccountPassword".ToUpper()) { this._strAccountPassword = CommonFunction.DecryptString128Bit(reader.Value, "heng8888"); continue; } if (str3 == "AccountRole".ToUpper()) { this._objRole = (EnumCollection.eMemberPosition)((int)Math.Round(Conversion.Val(reader.Value))); continue; } if (str3 == "LoginURL".ToUpper()) { this._strLoginURL = reader.Value; } } } } reader.Close(); } catch (Exception exception1) { ProjectData.SetProjectError(exception1); Exception exception = exception1; this._objErrorLogger.write(this._strName + ": EXCEPTION IN LoadSettingFromXML: " + exception.Message); this.WriteProgramLogger(this._strName + ": EXCEPTION IN LoadSettingFromXML: " + exception.Message); ProjectData.ClearProjectError(); } }
public void set_Role(EnumCollection.eMemberPosition position1) { this._objRole = position1; }