public PseDownloadManager(IFileManager <PseSymbol> fileManager, IFileDownloader fileDownloader, IConfiguration configuration, IInstrumentManager <PseSymbol, PseGroup> instrumentManager) { _fileManager = fileManager; _fileDownloader = fileDownloader; _configuration = configuration; _instrumentManager = instrumentManager; }
public PgInstrumentDetail(IInstrumentManager instrumentManager, bool addMode = false) { InitializeComponent(); _instrumentManager = instrumentManager; _addMode = addMode; _editMode = false; }
public InstrumentManagerTestsBase() { this.OrpheeFileExporterMock = new Mock<IOrpheeFileExporter>(); this.SoundPlayerMock = new Mock<ISoundPlayer>(); this.InstrumentManager = new InstrumentManager(); this.LoopCreationViewModel = new LoopCreationViewModel(this.SoundPlayerMock.Object, this.InstrumentManager, this.OrpheeFileExporterMock.Object); }
public DucascopyDownloaderManager(IFileManager <DucascopySymbol> fileManager, IFileDownloader fileDownloader, IConfiguration configuration, IInstrumentManager <DucascopySymbol, DucascopyGroup> instrumentManager) { _fileManager = fileManager; _fileDownloader = fileDownloader; _configuration = configuration; _instrumentManager = instrumentManager; }
public PgInstrumentDetail(InstrumentVm instrument, IInstrumentManager instrumentManager, bool editMode = false) { InitializeComponent(); _instrumentManager = instrumentManager; _instrument = instrument; _editMode = false; _editMode = editMode; }
public LoopCreationViewModel(ISoundPlayer soundPlayer, IInstrumentManager instrumentManager, IOrpheeFileExporter orpheeFileExporter) { this.DisplayedTrack = new OrpheeTrack(0, Channel.Channel1); this._soundPlayer = soundPlayer; this.InstrumentManager = instrumentManager; this._orpheeFileExporter = orpheeFileExporter; this.DisplayedTrack.CurrentInstrument = this.InstrumentManager.CurrentInstrument; this.ToggleButtonNoteCommand = new DelegateCommand<IToggleButtonNote>(ToggleButtonNoteExec); this.AddColumnsCommand = new DelegateCommand(AddColumnsCommandExec); this.RemoveAColumnCommand = new DelegateCommand(RemoveAColumnCommandExec); this.SaveButtonCommand = new DelegateCommand(SaveButtonCommandExec); this.LoadButtonCommand = new DelegateCommand(LoadButtonCommandExec); }
public ReceiveAppService( IRepository <BD_Receive, long> receiveRepository, IRepository <BD_InstrumentTest, long> instrumentTestRepository, IRepository <BD_ReceiveInstrument, long> receiveInstrumentRepository, IRepository <BD_Test, long> testRepository, UserManager userManager, IInstrumentManager instrumentManager) { _receiveRepository = receiveRepository; _instrumentTestRepository = instrumentTestRepository; _receiveInstrumentRepository = receiveInstrumentRepository; _testRepository = testRepository; _userManager = userManager; _instrumentManager = instrumentManager; }
public InstrumentViewModel(IInstrumentManager instrumentManager) { this.instrumentManager = instrumentManager; this.LoadInstrumentsCommand = new RelayCommand(async() => await LoadInstruments()); this.AddInstrumentsCommand = new RelayCommand(() => { this.Instruments.Add(new InstrumentEditViewModel(new Instrument() { Name = "L200", Ip = new IpAddress(10, 10, 10, 1) })); }); // not possible in constructor //await LoadInstruments(); }
public PgInventory() { InitializeComponent(); _instrumentManager = new InstrumentManager(); _cartManager = new CartManager(); }
/// <summary> /// Constructor, use builder for creation /// </summary> private BotHandlerService(IInstrumentManager instrumentManager) { _instrumentManager = Preconditions.CheckNotNull(instrumentManager); }
/// <summary> /// Constructor /// </summary> /// <param name="instrumentManager">InstrumentManager depency</param> public Builder(IInstrumentManager instrumentManager) { _botHandlerService = new BotHandlerService(instrumentManager); }
public InstrumentViewModel() { this.instrumentManager = new InstrumentManager(); this.LoadInstrumentsCommand = new RelayCommand(LoadInstruments); }
public ChangeStatus(Instrument instrument, IInstrumentManager instrumentManager) { InitializeComponent(); _instrument = instrument; _instrumentManager = instrumentManager; }
public void SetEmergencyStopInstrumentActivity(DynamicActivityMachine machine, AtlasException e) { IInstrumentManager instrumentManager = machine.Configuration.Data.InstrumentManager; machine.AddActivity(new DynamicActivity("InstrumentManager.StopSystem", () => instrumentManager.StopSystem(true))); }
public InstrumentManagerTestsBase() { this.InstrumentManager = new InstrumentManager(); }