Files
mtapi/TestClients/MtApi5TestClient/TimeSeriesValueViewModel.cs
T

57 lines
1.5 KiB
C#
Raw Normal View History

using MtApi5;
2016-05-10 17:56:39 +03:00
using System.ComponentModel;
namespace MtApi5TestClient
{
public class TimeSeriesValueViewModel : INotifyPropertyChanged
{
private string _symbolValue;
2016-05-10 17:56:39 +03:00
public string SymbolValue
{
get { return _symbolValue; }
2016-05-10 17:56:39 +03:00
set
{
_symbolValue = value;
2016-05-10 17:56:39 +03:00
OnPropertyChanged("SymbolValue");
}
}
public ENUM_TIMEFRAMES TimeFrame { get; set; }
public int StartPos { get; set; }
public int Count { get; set; }
private int _indicatorHandle;
public int IndicatorHandle
{
get { return _indicatorHandle; }
set
{
_indicatorHandle = value;
OnPropertyChanged("IndicatorHandle");
}
}
private ENUM_INDICATOR _indicatorType = ENUM_INDICATOR.IND_MACD;
public ENUM_INDICATOR IndicatorType
{
get { return _indicatorType; }
set
{
_indicatorType = value;
OnPropertyChanged("IndicatorType");
}
}
2016-05-10 17:56:39 +03:00
#region INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
var handler = PropertyChanged;
handler?.Invoke(this, new PropertyChangedEventArgs(propertyName));
2016-05-10 17:56:39 +03:00
}
#endregion
}
}