예제 #1
0
 private void LoadTemplateParameters(CommandTemplate template)
 {
     this.Parameters = new List <CommandParameter>(template.Parameters.Capacity);
     foreach (CommandParameterTemplate parameterTemplate in template.Parameters)
     {
         this.Parameters.Add(new CommandParameter(parameterTemplate));
     }
 }
예제 #2
0
 public Command(CommandTemplate template)
 {
     this.Template = template;
     LoadTemplateParameters(template);
 }
예제 #3
0
 public Command(CommandTemplate template, List <CommandParameter> parameters)
 {
     this.Template   = template;
     this.Parameters = parameters;
 }
예제 #4
0
 public Command(int commandID, int byteLength, CommandType type)
 {
     Template = new CommandTemplate(commandID, byteLength, type);
     LoadTemplateParameters(Template);
 }