WorkingTimeControlView

StockSharp.Xaml.Panels.Maui

编辑工作时间安排的视图 。

继承自: BasePanelView

构造函数

WorkingTimeControlView
public WorkingTimeControlView()
workingTimeControlView = WorkingTimeControlView()

创建新实例。

属性

IsWorkingTimeEnabled
public bool IsWorkingTimeEnabled { get; set; }
value = workingTimeControlView.IsWorkingTimeEnabled
workingTimeControlView.IsWorkingTimeEnabled = value

获取或设定是否启用了工作时间 。

Periods
public IList<WorkingTimePeriodItem> Periods { get; }
value = workingTimeControlView.Periods

获得时相收取.

ShowActive
public bool ShowActive { get; set; }
value = workingTimeControlView.ShowActive
workingTimeControlView.ShowActive = value

获取或设定是否显示活动复选框 。

ViewModel
public WorkingTimeControlViewModel ViewModel { get; }
value = workingTimeControlView.ViewModel

Gets the ViewModel.

方法

Clear
public void Clear()
workingTimeControlView.Clear()

清净一切相.

GetPeriods
public IEnumerable<ValueTuple<DateTime, IEnumerable<ValueTuple<TimeSpan, TimeSpan>>>> GetPeriods()
result = workingTimeControlView.GetPeriods()

获取时段数据。

LoadPeriods
public void LoadPeriods(IEnumerable<ValueTuple<DateTime, IEnumerable<ValueTuple<TimeSpan, TimeSpan>>>> periods, bool isEnabled)
workingTimeControlView.LoadPeriods(periods, isEnabled)

从数据中装入时段 。

事件

DataChanged
public event EventHandler DataChanged
workingTimeControlView.DataChanged += handler

数据变化时引起事件。

Error
public event EventHandler<string> Error
workingTimeControlView.Error += handler

发生错误时引发的事件 。