/// <summary>
 /// Initializes a new instance of the <see cref="CxxOptionsController"/> class.
 /// </summary>
 /// <param name="service">
 /// The service.
 /// </param>
 public CxxOptionsController(ICxxIoService service)
 {
     this.cxxControl = null;
     this.OpenCommand = service != null ? new CxxOpenFileCommand(this, service) : new CxxOpenFileCommand(this, new CxxService());
     this.ResetDefaultCommand = new CxxResetDefaultsCommand(this);
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CxxOpenFileCommand"/> class. 
 /// </summary>
 /// <param name="model">
 /// The model.
 /// </param>
 /// <param name="ioservice">
 /// The service.
 /// </param>
 public CxxOpenFileCommand(CxxOptionsController model, ICxxIoService ioservice)
 {
     this.model = model;
     this.service = ioservice;
 }