private void ShowWarning() { int errors = _vm.GetErrors(); if (errors == 0) { return; } MessageBox.Show(string.Format("There were {0} error(s) while processing data", errors), "Warning", MessageBoxButton.OK); }