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