public MainWindow() { InitializeComponent(); TM = new TradeMan(); DataContext = this; DbgSett.Options.Add(DbgSett.DbgOption.ApiEmulate); DbgSett.Options.Add(DbgSett.DbgOption.ShowBuy); DbgSett.Options.Add(DbgSett.DbgOption.ShowSell); DbgSett.Options.Add(DbgSett.DbgOption.ShowCourse); }
private void BtnLoadMarkets_OnClick(object sender, RoutedEventArgs e) { var f = new OpenFileDialog(); if (f.ShowDialog(this) != true) { return; } TM = FileIO.deserializeDataContract <TradeMan>(f.FileName); OnPropertyChanged(nameof(TM)); }
public MainWindow() { InitializeComponent(); TM = new TradeMan(); DataContext = this; }