Ejemplo n.º 1
0
 public void SetData(SeriesStock stock, SeriesData data)
 {
     this.stock          = stock;
     this.data           = data;
     this.stock.Changed += new ChangedEventHandler(stock_Changed);
     this.update();
 }
Ejemplo n.º 2
0
 public void SetData(SeriesStock stock, SeriesData data)
 {
     this.stockDataGrid.SetData(stock, data);
     this.stockGraph.SetData(stock, data);
     this.Text = stock.StockName;
     this.Name = "STOCK " + stock.StockName;
 }
        public void SetStock(SeriesStock stock)
        {
            this.stock               = stock;
            this.txtName.Text        = stock.StockName;
            this.txtDescription.Text = stock.StockDescription;

            this.openVariable = stock.Open;
            this.lstVariables.Items.Remove(stock.Open);
            this.txtOpen.Text = this.openVariable.VariableName;
            this.cmdOpen.Text = "<";

            this.highVariable = stock.High;
            this.lstVariables.Items.Remove(stock.High);
            this.txtHigh.Text = this.highVariable.VariableName;
            this.cmdHigh.Text = "<";

            this.lowVariable = stock.Low;
            this.lstVariables.Items.Remove(stock.Low);
            this.txtLow.Text = this.lowVariable.VariableName;
            this.cmdLow.Text = "<";

            this.closeVariable = stock.Close;
            this.lstVariables.Items.Remove(stock.Close);
            this.txtClose.Text = this.closeVariable.VariableName;
            this.cmdClose.Text = "<";

            this.volumeVariable = stock.Volume;
            this.lstVariables.Items.Remove(stock.Volume);
            this.txtVolume.Text = this.volumeVariable.VariableName;
            this.cmdVolume.Text = "<";
        }
Ejemplo n.º 4
0
 public void SetStock(SeriesStock stock)
 {
     this.Text         = "Duplicate Stock : " + stock.StockName;
     this.lblName.Text = "New Stock Name";
 }