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