示例#1
0
 public void Execute(IBindingEnvironment environment)
 {
     Thread thread = new Thread(new ParameterizedThreadStart(this.ExecuteGo));
     GoCommandParameter parameter = new GoCommandParameter() { Machine = Machine.Current, Environment = new LocalBindingEnvironment(environment) };
     thread.IsBackground = true;
     thread.Start(parameter);
 }
示例#2
0
        private void ExecuteGo(object obj)
        {
            GoCommandParameter parameter = (GoCommandParameter)obj;

            parameter.Machine.SetCurrent();

            this.command.Execute(parameter.Environment);
        }
示例#3
0
        public void Execute(IBindingEnvironment environment)
        {
            Thread             thread    = new Thread(new ParameterizedThreadStart(this.ExecuteGo));
            GoCommandParameter parameter = new GoCommandParameter()
            {
                Machine = Machine.Current, Environment = new LocalBindingEnvironment(environment)
            };

            thread.IsBackground = true;
            thread.Start(parameter);
        }