Exemplo n.º 1
0
 internal void SetUserCommand(OpenQuant.API.UserCommand command)
 {
     try
     {
         foreach (Strategy strategy in this.strategies.Values)
         {
             strategy.OnUserCommand(command);
         }
     }
     catch (Exception ex)
     {
         this.EmitError(ex);
     }
 }
Exemplo n.º 2
0
 public override void OnUserCommand(UserCommand command)
 {
     StopStrategy();
 }
Exemplo n.º 3
0
		public virtual void OnUserCommand(UserCommand command)
		{
		}
Exemplo n.º 4
0
 public override void OnUserCommand(UserCommand command)
 {
     string cmd = command.Text;
     if (cmd == "LOGIN")
     {
         Login();
     }
     else if (cmd.StartsWith("LOGIN"))
     {
         string[] arr = cmd.Split(':');
         Login(arr[1]);
     }
     else if (cmd.StartsWith("GROUP"))
     {
         string[] arr = cmd.Split(':');
         SetDefaultGroup(arr[1], arr[2]);
     }
     else
     {
         SendMessage(cmd);
     }
 }