Exemple #1
0
 private void CreateNew(object sender, RoutedEventArgs e)
 {
     if (file.SaveCheck())
     {
         file             = new TxtFile();
         this.DataContext = file;
     }
 }
Exemple #2
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     file.SaveCheck();
 }