public void AddToDatabase() { Program.DatabaseManager.GetClient().ExecuteQuery( "INSERT INTO Masters (CharID,MasterID,MemberName,Level,RegisterDate,isMaster) VALUES ('" + MasterID + "','" + CharID + "','" + pMemberName + "','" + Level + "','" + RegisterDate.ToString("yyyy-MM-dd hh:mm") + "','" + Convert.ToByte(IsMaster) + "')"); }
public override string GetData() { return(string.Format("{0}{1}{2}{3}", CardType, EmplayeeCode, RegisterDate.ToString("yyyyMMddhhmmss"), EffectionDate.ToString("yyyyMMddhhmmss"))); }
public override string ToString() { string expire; if (PremiumExpireDate == null) { expire = "null"; } else { expire = PremiumExpireDate.ToString("yyyy.MM.dd"); } return(Name + " " + Surname + " " + Email + " " + Height + " " + Weight + " " + RegisterDate.ToString("yyyy.MM.dd") + " " + expire); }