Exemple #1
0
        public MainWindow(SniperPortfolio portfolio, string sniperId)
        {
            InitializeComponent();
            this.Text        = Program.APPLICATION_TITLE;
            tbItemId.Name    = Program.NEW_ITEM_ID_NAME;
            tbStopPrice.Name = Program.NEW_ITEM_STOP_PRICE_NAME;
            btnJoin.Name     = Program.JOIN_BUTTON_NAME;
            SniperTableModel tableModel = new SniperTableModel();

            portfolio.AddPortfolioListener(tableModel);
            snipers             = tableModel;
            gvSniper.DataSource = snipers;
            this.sniperId       = sniperId;
        }
 public UIThreadSniperListener(SniperTableModel snipers)
 {
     this.snipers = snipers;
 }