public TesterHandyUi() { InitializeComponent(); ServerMaster.SetHostTable(HostPositionOnBoard, HostOrdersOnBoard); ServerMaster.CreateServer(ServerType.Tester, false); ServerMaster.GetServers(); _strategyKeeper = new OsTraderMaster(GridChart, ChartHostPanel, HostGlass, HostOpenPosition, HostClosePosition, HostAllPosition, HostBotLog, HostBotLogPrime, RectChart, HostAllert, TabControlBotsName, TabControlBotTab, TextBoxPrice, GridChartControlPanel, StartProgram.IsTester); LocationChanged += TesterHandyUi_LocationChanged; LabelOsa.Content = "V_" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; cbItems = new ObservableCollection <ComboBoxItem>(); cbItems2 = new ObservableCollection <ComboBoxItem>(); cbItems3 = new ObservableCollection <ComboBoxItem>(); SetComboBoxItemByTab(0); TabControlBotsName.SelectionChanged += TabControlBotsName_SelectionChanged; TabControlBotsName.SizeChanged += TabControlBotsName_SizeChanged; Closing += TesterHandyUi_Closing; Local(); TabControlMd.SelectedIndex = 2; _gridClOrder = DataGridFactory.GetDataGridOrder(); HostOrdersClosed.Child = _gridClOrder; _gridClOrder.Click += _gridClOrder_Click; }
public RobotUiLight() { InitializeComponent(); ServerMaster.SetHostTable(HostPositionOnBoard, HostOrdersOnBoard); ServerMaster.GetServers(); _strategyKeeper = new OsTraderMaster(null, null, null, null, null, HostAllPosition, null, HostBotLogPrime, null, null, null, null, null, null, StartProgram.IsOsTrader); LabelOsa.Content = "V_" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; Closing += TesterUi_Closing; Local(); BotTabsPainter painter = new BotTabsPainter(_strategyKeeper, BotsHost); ServerMasterPainter painterServer = new ServerMasterPainter(HostServers, HostServerLog, CheckBoxServerAutoOpen); Closing += delegate(object sender, CancelEventArgs args) { painterServer.Dispose(); painter = null; }; }
public RobotUi() { InitializeComponent(); _strategyKeeper = new OsTraderMaster(ChartHostPanel, HostGlass, HostOpenPosition, HostClosePosition, HostAllPosition, HostBotLog, HostBotLogPrime, RectChart, HostAllert, TabControlBotsName, TabControlBotTab, TextBoxPrice, GridChartControlPanel); Closing += RobotUi_Closing; ServerMaster.SetHostTable(HostPositionOnBoard, HostOrdersOnBoard); LocationChanged += RobotUi_LocationChanged; CheckBoxPaintOnOff.IsChecked = true; CheckBoxPaintOnOff.Click += CheckBoxPaintOnOff_Click; LabelOsa.Content = "V_" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; TabControlBotsName.SizeChanged += TabControlBotsName_SizeChanged; }
public TesterUi() { InitializeComponent(); ServerMaster.IsTester = true; ServerMaster.SetHostTable(HostPositionOnBoard, HostOrdersOnBoard); ServerMaster.CreateServer(ServerType.Tester, false); ServerMaster.GetServers(); _strategyKeeper = new OsTraderMaster( ChartHostPanel, HostGlass, HostOpenPosition, HostClosePosition, HostAllPosition, HostBotLog, HostBotLogPrime, RectChart, HostAllert, TabControlBotsName, TabControlBotTab, TextBoxPrice); LocationChanged += TesterUi_LocationChanged; LabelOsa.Content = "V_" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; TabControlBotsName.SizeChanged += TabControlBotsName_SizeChanged; }
public TesterUiLight() { InitializeComponent(); ServerMaster.SetHostTable(HostPositionOnBoard, HostOrdersOnBoard); ServerMaster.CreateServer(ServerType.Tester, false); ServerMaster.GetServers(); _strategyKeeper = new OsTraderMaster(null, null, null, null, null, HostAllPosition, null, HostBotLogPrime, null, null, null, null, null, null, StartProgram.IsTester); LabelOsa.Content = "V_" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; Closing += TesterUi_Closing; Local(); BotTabsPainter painter = new BotTabsPainter(_strategyKeeper, BotsHost); }