Beispiel #1
0
        private void OnCloseCurrent(object sender, ExecutedRoutedEventArgs e)
        {
            var doc = GetCurrentDocument();

            if (doc != null)
            {
                editor.RequestClose(doc);
            }
        }
Beispiel #2
0
 private void OnCloseCurrent(object sender, ExecutedRoutedEventArgs e)
 {
     try
     {
         var doc = getCurrentDocument();
         if (doc != null)
         {
             editor.RequestClose(doc);
         }
     }
     catch (Exception err)
     {
         GUIUtilities.ReportUnexpectedException(err);
     }
 }