void OnClose()
 {
     if (!EnsureSaved())
     {
         return;
     }
     ProgramProvider.Reset();
     CloseCommand.RaiseCanExecuteChanged();
     SaveAsCommand.RaiseCanExecuteChanged();
 }
 void OnNew()
 {
     if (!EnsureSaved())
     {
         return;
     }
     ProgramProvider.Reset();
     CloseCommand.RaiseCanExecuteChanged();
     SaveAsCommand.RaiseCanExecuteChanged();
     StatusUpdateProvider.Publish(Resources.Strings.TitleBarViewModel_CreatedNewProgram);
 }