void ViewModel_NavigationHandler(object sender, MainViewModel.PageNavigationEventArgs e)
        {
            if (e.Type == MainViewModel.PageNavigationEventArgs.EventType.Forward && ViewModel.TempFile != null)
            {
                ViewModel.CurrentFile     = ViewModel.TempFile;
                ViewModel.CurrentFilePath = ViewModel.TempFilePath;

                e.Processed = true;

                var actions = new Dictionary <string, BackupProcessor.ActionSetting>();
                foreach (var key in BackupProcessor.RestoreTestActions.Keys)
                {
                    var val   = BackupProcessor.RestoreTestActions[key];
                    var param = new BackupProcessor.TestActionParameter();
                    param.File = ViewModel.CurrentFile;
                    val(param);
                    actions.Add(key, new BackupProcessor.ActionSetting(param.IsAvailable, param.IsAvailable));
                }
                ViewModel.ActionSettings = actions;
                var page = new pageRestoreList(ViewModel);
                ViewModel.Navigate(page);
            }
            else if (e.Type == MainViewModel.PageNavigationEventArgs.EventType.GetForwardButtonVisibleState)
            {
                e.Processed = true;
                if (System.IO.File.Exists(txtFilePath.Text) && ViewModel.TempFile != null && RapiComm.IsConnected)
                {
                    e.Result = true;
                }
                else
                {
                    e.Result = false;
                }
            }
        }
        void ViewModel_NavigationHandler(object sender, MainViewModel.PageNavigationEventArgs e)
        {
            if (e.Type == MainViewModel.PageNavigationEventArgs.EventType.Forward && ViewModel.TempFile != null)
            {
                ViewModel.CurrentFile = ViewModel.TempFile;
                ViewModel.CurrentFilePath = ViewModel.TempFilePath;

                e.Processed = true;

                var actions = new Dictionary<string, BackupProcessor.ActionSetting>();
                foreach (var key in BackupProcessor.RestoreTestActions.Keys)
                {
                    var val = BackupProcessor.RestoreTestActions[key];
                    var param = new BackupProcessor.TestActionParameter();
                    param.File = ViewModel.CurrentFile;
                    val(param);
                    actions.Add(key, new BackupProcessor.ActionSetting(param.IsAvailable, param.IsAvailable));
                }
                ViewModel.ActionSettings = actions;
                var page = new pageRestoreList(ViewModel);
                ViewModel.Navigate(page);
            }
            else if (e.Type == MainViewModel.PageNavigationEventArgs.EventType.GetForwardButtonVisibleState)
            {
                e.Processed = true;
                if (System.IO.File.Exists(txtFilePath.Text) && ViewModel.TempFile != null && RapiComm.IsConnected)
                    e.Result = true;
                else
                    e.Result = false;
            }
        }