public MarketDepthByPrice(RealTimeData RTD, Company comp) { InitializeComponent(); this.comp = comp; //the current compnay for this window this.Text += " " + comp.compName; //set the text at the top of the form Update(RTD); //add any data from the data model to the view realdata = RTD; //store a copy of the data model this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(delegate { realdata.unRegister(this); }); }
//this.Update(s); public StateSummary(RealTimeData rdata) { InitializeComponent(); dataGridView1.Rows.Add(2); this.realdata = rdata; this.companyName = rdata._company[0].compName; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(delegate { realdata.unRegister(this); }); }
//CONSTRUCTORS====================== public MarketDepthByOrder(RealTimeData RTD, Company comp) { //some image stuff InitializeComponent(); this.comp = comp; this.Text += " " + comp.compName; Update(realdata); realdata = RTD; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(delegate { realdata.unRegister(this); }); }