예제 #1
0
        public BackupModule(IRegionManager regionManager, IUserService userService, BackupModuleView BackupModuleView, BackupModuleViewModel BackupModuleViewModel, BackupHelper backupHelper)
            : base(regionManager, AppScreens.BackupView)
        {
            _regionManager         = regionManager;
            _userService           = userService;
            _BackupModuleView      = BackupModuleView;
            _BackupModuleViewModel = BackupModuleViewModel;
            this._backupHelper     = backupHelper;

            SetNavigationCommand(Resources.MagentixBackup, Resources.Common, "Images/Market.png", 50);
            PermissionRegistry.RegisterPermission(PermissionNames.OpenBackup, PermissionCategories.Navigation, string.Format(Resources.CanNavigate_f, Resources.BackupRestore));
            EventServiceFactory.EventService.GetEvent <GenericEvent <WorkPeriod> >().Subscribe(new Action <EventParameters <WorkPeriod> >(this.OnWorkperiodStatusChanged));
        }
예제 #2
0
 public BackupModuleView(BackupModuleViewModel viewModel)
 {
     DataContext = viewModel;
     InitializeComponent();
 }