List <PrimeAccount> IPrimeAccount.GetAccount(string OptCode, ref int FlagCode) { int NewCallCount = Interlocked.Increment(ref CallCount); string SendReceiveString; //更新可视化界面 SendReceiveString = string.Format("GetAccount:[次数:{0}][OptCode:{1}][FlagCode:{2}]", CallCount, OptCode, FlagCode); OutPut(SendReceiveString); List <PrimeAccount> MyPrimeAccountList = new List <PrimeAccount>(); PrimeAccount MyPrimeAccount; MyPrimeAccount = new PrimeAccount(); MyPrimeAccount.AccountID = "123456789011"; MyPrimeAccount.LoginName = "ABCD李"; MyPrimeAccount.PassWord = "******"; MyPrimeAccount.SexID = 10;//男人 MyPrimeAccount.RegDate = System.DateTime.Now; MyPrimeAccount.HeadImage = new byte[10]; MyPrimeAccount.HeadImage[0] = 0xFF; MyPrimeAccount.HeadImage[1] = 0xFF; MyPrimeAccount.HeadImage[3] = 0xFF; MyPrimeAccountList.Add(MyPrimeAccount); /* * MyPrimeAccount = new PrimeAccount(); * MyPrimeAccount.AccountID = "123456789012"; * MyPrimeAccount.LoginName = "ABCD王"; * MyPrimeAccount.PassWord = "******"; * MyPrimeAccount.SexID = 2; * MyPrimeAccount.RegDate = System.DateTime.Now.AddMonths(4); * MyPrimeAccount.HeadImage = new byte[10]; * MyPrimeAccount.HeadImage[0] = 0xFF; * MyPrimeAccount.HeadImage[1] = 0xFF; * MyPrimeAccount.HeadImage[3] = 0xFF; * MyPrimeAccountList.Add(MyPrimeAccount); */ FlagCode = 100; return(MyPrimeAccountList); }
int IPrimeAccount.SetAccount(PrimeAccount MyPrimeAccount, int FlagCode) { if (MyPrimeAccount == null) { OutPut("SetAccount Call: null Para " + FlagCode.ToString()); return(200); } int NewCallCount = Interlocked.Increment(ref CallCount); string SendReceiveString; //更新可视化界面 SendReceiveString = string.Format("SetAccount:[次数:{0}][LoginName:{1}][PassWord:[{2}][AccountID:{3}]", CallCount, MyPrimeAccount.LoginName, MyPrimeAccount.PassWord, MyPrimeAccount.AccountID); OutPut(SendReceiveString); //SendReceiveString = string.Format("SetAccount:[出生日期:{0}][HeadImage:{1}][SexID:[{2}][OwnerName:{3}]", MyPrimeAccount.BirthDate.ToString(), MyPrimeAccount.HeadImage.Length, MyPrimeAccount.SexID, MyPrimeAccount.OwnerName); //OutPut(SendReceiveString); return(100); }