public MainWindow() { InitializeComponent(); //トレードコントローラインスタンス化。 this.trade = new TradeController(true); Symbol[] Symbols = TradeController.GetSymbols(); //アップデート foreach(Symbol symbol in Symbols) { trade.UpdateRateSymbol(symbol); } ticketNumberList = new ObservableCollection<TicketNumber> { new TicketNumber{check = true ,ticketnumber = 11111, time = new DateTime(2016,01,15), cmd = "Ask" , lot = 0.10, symbol = "USDJPY" , rate = 111.111, stoploss = 1111,takeprofit = 2222, nowrate = 222.222, profit = 9999}, new TicketNumber{check= true ,ticketnumber = 11112, time = new DateTime(2016,01,15), cmd = "Bsk" , lot = 0.10, symbol = "EURJPY" , rate = 111.111, stoploss = 1111,takeprofit = 2222, nowrate = 222.222, profit = 9999}, new TicketNumber{check = false ,ticketnumber = 11113, time = new DateTime(2016,01,15), cmd = "Ask" , lot = 0.10, symbol = "USDJPY" , rate = 111.111, stoploss = 1111,takeprofit = 2222, nowrate = 222.222, profit = 9999}, new TicketNumber{check = true ,ticketnumber = 11113, time = new DateTime(2016,01,15), cmd = "Ask" , lot = 0.10, symbol = "USDJPY" , rate = 111.111, stoploss = 1111,takeprofit = 2222, nowrate = 222.222, profit = 9999}, new TicketNumber{check = true ,ticketnumber = 11114, time = new DateTime(2016,01,15), cmd = "Ask" , lot = 0.10, symbol = "USDJPY" , rate = 111.111, stoploss = 1111,takeprofit = 2222, nowrate = 222.222, profit = 9999}, new TicketNumber{check = true ,ticketnumber = 11115, time = new DateTime(2016,01,15), cmd = "Ask" , lot = 0.10, symbol = "USDJPY" , rate = 111.111, stoploss = 1111,takeprofit = 2222, nowrate = 222.222, profit = 9999}, new TicketNumber{check = true ,ticketnumber = 11116, time = new DateTime(2016,01,15), cmd = "Ask" , lot = 0.10, symbol = "USDJPY" , rate = 111.111, stoploss = 1111,takeprofit = 2222, nowrate = 222.222, profit = 9999}, }; // DataGridに設定する this.Symbol.ItemsSource = Symbols; this.TicketNumber.ItemsSource = ticketNumberList; //口座情報 あとで this.AccountInformation.Text = "口座情報 とりあえず"; }
public OrderSend_menu() { InitializeComponent(); DataContext = new TestBindObject() { A = 10 }; //トレードコントローラインスタンス化。 this.trade = new TradeController(true); Symbol[] Symbols = TradeController.GetSymbols(); this.SymbolPair.SelectedIndex = 0; this.Lot.SelectedIndex = 0; this.SymbolPair.ItemsSource = Symbols; }
public FxChartUpdater(System.Windows.Forms.DataVisualization.Charting.Chart chart, TradeController trade) : base(1000) { this.chart = chart; this.trade = trade; InitChart(); }