Class JobsPageViewModel
ViewModel for the Jobs Page. Manages the display and execution of backup jobs.
Implements
IReactiveNotifyPropertyChanged<IReactiveObject>
IHandleObservableErrors
IReactiveObject
IEnableLogger
Inherited Members
ReactiveObject.SuppressChangeNotifications()
ReactiveObject.AreChangeNotificationsEnabled()
ReactiveObject.DelayChangeNotifications()
ReactiveObject.Changing
ReactiveObject.Changed
ReactiveObject.ThrownExceptions
ReactiveObject.PropertyChanging
ReactiveObject.PropertyChanged
Namespace: EasySave_Project.ViewModels.Pages
Assembly: .dll
Syntax
public class JobsPageViewModel : ReactiveObject, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger
Constructors
| Edit this page View SourceJobsPageViewModel()
Declaration
public JobsPageViewModel()
Properties
| Edit this page View SourceAddAJob
Declaration
public string AddAJob { get; }
Property Value
Type | Description |
---|---|
string |
AllJobs
Declaration
public string AllJobs { get; }
Property Value
Type | Description |
---|---|
string |
Destination
Declaration
public string Destination { get; }
Property Value
Type | Description |
---|---|
string |
ExecuteCommand
UI text labels retrieved from the translation service.
Declaration
public ReactiveCommand<Unit, Unit> ExecuteCommand { get; }
Property Value
Type | Description |
---|---|
ReactiveCommand<Unit, Unit> |
Jobs
Declaration
public ObservableCollection<JobModel> Jobs { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<JobModel> |
Name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
PriorityExtension
Declaration
public string PriorityExtension { get; }
Property Value
Type | Description |
---|---|
string |
Progress
Declaration
public string Progress { get; }
Property Value
Type | Description |
---|---|
string |
Results
Declaration
public string Results { get; }
Property Value
Type | Description |
---|---|
string |
Run
Declaration
public string Run { get; }
Property Value
Type | Description |
---|---|
string |
Source
Declaration
public string Source { get; }
Property Value
Type | Description |
---|---|
string |
Type
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceCancelJobInActif(JobModel, Action<JobModel, double>)
Declaration
public void CancelJobInActif(JobModel jib, Action<JobModel, double> progressCallback)
Parameters
Type | Name | Description |
---|---|---|
JobModel | jib | |
Action<JobModel, double> | progressCallback |
ExecuteJobsParallelThreadPool(List<JobModel>, Action<JobModel, double>, Action<string, string>)
Executes multiple jobs in parallel using a thread pool, providing progress updates and notifications.
Declaration
public void ExecuteJobsParallelThreadPool(List<JobModel> jobs, Action<JobModel, double> progressCallback, Action<string, string> showPopup)
Parameters
Type | Name | Description |
---|---|---|
List<JobModel> | jobs | The list of jobs to execute. |
Action<JobModel, double> | progressCallback | Callback function to update progress. |
Action<string, string> | showPopup | Function to display notifications. |
Refresh()
Refreshes translations and reloads the job list.
Declaration
public void Refresh()
Implements
ReactiveUI.IReactiveNotifyPropertyChanged<TSender>
ReactiveUI.IHandleObservableErrors
ReactiveUI.IReactiveObject
Splat.IEnableLogger