public Admin(StepDirectory stepDirectory, CommandCenter commandCenter) { _stepDirectory = stepDirectory; _commandCenter = commandCenter; InitializeComponent(); _toggler = this.Toggler(); _stepDirectory.StepsUpdated += (d, e) => Dispatcher.Invoke((Action)(() => StepsUpdated(d,e))); StepChanged += (d, e) => { }; ExecuteCommandWithParameters += (d, e) => { }; LoadItems(_stepDirectory.Steps); }
private void InitializeCommands() { Services = new CommandServices(this, _stepDirectory); _commandCenter = new CommandCenter(FindPathForDirectory("commands"), Services, _engine); }