コード例 #1
0
 private void save_Click(object sender, RoutedEventArgs e)
 {
     if (fileName != String.Empty)
     {
         TextFileOperations.WriteTextFileContents(fileName, input.Text);
     }
 }
コード例 #2
0
 private void open_Click(object sender, RoutedEventArgs e)
 {
     fileName = GetFileName();
     if (fileName != String.Empty)
     {
         // input.Text = TextFileOperations.ReadTextFileContents(fileName);
         input.Text = TextFileOperations.ReadAndFilterTextFileContents(fileName);
     }
 }