internal string AddDealer()
 {
     string result = VirtualDealer.DBWAgentInstance.AddNewVirtualDealer(this);
     int id;
     int.TryParse(result, out id);
     if (id > 0)
     {
         this.ID = id;
         Business.Agent agent = new Agent();
         agent.LoginVirtualDealer(this);
     }
     return result;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 internal void IniVirtualDealer()
 {
     List<Business.VirtualDealer> result = TradingServer.Facade.FacadeGetVirtualDealer();
     for (int i = 0; i < result.Count; i++)
     {
         Business.Agent agent = new Agent();
         agent.LoginVirtualDealer(result[i]);
     }
 }