WorkingTimeControlView
StockSharp.Xaml.Panels.Maui
View for editing working time schedules.
Inherits: BasePanelView
Constructors
WorkingTimeControlView
public WorkingTimeControlView()
workingTimeControlView = WorkingTimeControlView()
Creates a new instance.
Properties
IsWorkingTimeEnabled
public bool IsWorkingTimeEnabled { get; set; }
value = workingTimeControlView.IsWorkingTimeEnabled
workingTimeControlView.IsWorkingTimeEnabled = value
Gets or sets whether working time is enabled.
Periods
public IList<WorkingTimePeriodItem> Periods { get; }
value = workingTimeControlView.Periods
Gets the periods collection.
ShowActive
public bool ShowActive { get; set; }
value = workingTimeControlView.ShowActive
workingTimeControlView.ShowActive = value
Gets or sets whether to show the active checkbox.
ViewModel
public WorkingTimeControlViewModel ViewModel { get; }
value = workingTimeControlView.ViewModel
Gets the ViewModel.
Methods
GetPeriods
public IEnumerable<ValueTuple<DateTime, IEnumerable<ValueTuple<TimeSpan, TimeSpan>>>> GetPeriods()
result = workingTimeControlView.GetPeriods()
Gets the periods data.
LoadPeriods
public void LoadPeriods(IEnumerable<ValueTuple<DateTime, IEnumerable<ValueTuple<TimeSpan, TimeSpan>>>> periods, bool isEnabled)
workingTimeControlView.LoadPeriods(periods, isEnabled)
Loads periods from data.
Events
DataChanged
public event EventHandler DataChanged
workingTimeControlView.DataChanged += handler
Event raised when data changes.
Error
public event EventHandler<string> Error
workingTimeControlView.Error += handler
Event raised when an error occurs.