public void Execute(object parameter) { var filename = $"{Environment.CurrentDirectory}/rki-status-{this._viewModel.DistrictData.Date:dd-MM-yyyy}.jpg"; if (!WpfControlToBitmap.SaveControlImage(this._renderPicturePrint, filename)) { SimpleStatusOverlays.Show("ERROR", "Can't save picture!"); } this._renderPicturePrint.Visibility = Visibility.Hidden; }
private void Component_RkiDataErrorEvent(string message) => SimpleStatusOverlays.Show("ERROR", message);