예제 #1
0
        public SimulationUI(MainUI main, MainModel model)
            : base(main, EPin.TopRight)
        {
            InitializeComponent();
            Model       = model;
            HideOnClose = true;

            SetupUI();

            m_timer_sim.Tick += (s, a) => SimStep();
        }
예제 #2
0
 public MainModel(MainUI owner, Settings settings)
 {
     Owner           = owner;
     Settings        = settings;
     TradeDataSource = new TradeeClient(DispatchMsg);
     Acct            = new AccountStatus(this, new Account());
     History         = new History(this);
     MarketData      = new MarketData(this);
     Favourites      = new BindingSource <Instrument> {
         DataSource = new BindingListEx <Instrument>()
     };
     Positions  = new Positions(this);
     Sessions   = new Sessions(this);
     Alarms     = new Alarms();
     Simulation = new Simulation(this);
 }