private void OnCalculateCohens() { var result = _cohensCalculator.CalculateEffectSize(); var resultVM = new ResultVM(result); resultVM.CloseCommand = CloseCommand; resultVM.SaveCommand = new RelayCommand(p => OnSaveResult(result)); Content = resultVM; }