private void ExecuteStartOptimizationCommand(CancelEventArgs obj) { var logBattle = _battleService.Optimize(BattleSettingsItem); var battleLog = new BattleLog { DataContext = new BattleLogViewModel { LogBattle = logBattle } }; battleLog.Show(); }