/// <summary>
 /// Initializes a new <see cref="GenericPlcViewModel"/> instance.
 /// </summary>
 public GenericPlcViewModel()
 {
     _states                = new ScreenActivationNullObject();
     _detailStates          = new ScreenActivationNullObject();
     _masterTree            = new BindableCollection <MasterDetailViewModel>();
     _sortOrder             = 0;
     _importResultViewModel = new ImportExportResultNullObject();
     _exportResultViewModel = new ImportExportResultNullObject();
 }
 public async void Export()
 {
     await SafeExecute(async() =>
     {
         string exportedTree   = await _informationProvider.Export(_moduleName);
         bool result           = await _saver.SaveStringToFile(exportedTree, _moduleName, ".xml");
         ExportResultViewModel = new ImportExportResultViewModel {
             HasFailed = !result
         };
         _states.ChangeToContentState();
     });
 }