private void SaveButton_Click(object sender, RoutedEventArgs e) { if (fileName != "") { TextFileOperations.WriteTextFileContents(fileName, editor.Text); } }
private void OpenButton_Click(object sender, RoutedEventArgs e) { fileName = GetFileName(); editor.Text = fileName != "" ? TextFileOperations.ReadTextFileContents(fileName) : ""; }