//events private void OpenFile_OnClick(object sender, RoutedEventArgs e) { (_fileName, Title) = SaveService.OnOpenFile(); if (!File.Exists(_fileName)) { MessageBox.Show("Unable to open file", "Error", MessageBoxButton.OK); return; } NotepadField.Text = File.ReadAllText(_fileName); SaveStatusUpdate(true); }