Files
mtapi/TestClients/MtApi5TestClient/TimeSeriesValueViewModel.cs
T

38 lines
1.0 KiB
C#
Raw Normal View History

2016-05-10 17:56:39 +03:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MtApi5;
using System.ComponentModel;
namespace MtApi5TestClient
{
public class TimeSeriesValueViewModel : INotifyPropertyChanged
{
private string _SymbolValue;
public string SymbolValue
{
get { return _SymbolValue; }
set
{
_SymbolValue = value;
OnPropertyChanged("SymbolValue");
}
}
public ENUM_TIMEFRAMES TimeFrame { get; set; }
public int StartPos { get; set; }
public int Count { get; set; }
#region INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
}
#endregion
}
}