Ejemplo n.º 1
0
 public void change(InfoEntity e)
 {
     info.win    += e.win;
     info.price  += e.price;
     info.upwin   = e.upwin;
     info.daywin += e.daywin;
     setValues();
 }
Ejemplo n.º 2
0
 public void change(InfoEntity e)
 {
     info.win += e.win;
     info.price += e.price;
     info.upwin = e.upwin;
     info.daywin += e.daywin;
     setValues();
 }
Ejemplo n.º 3
0
 private void updownsync(string s)
 {
     double temp = Convert.ToDouble(hold.Text) * Convert.ToDouble(s) * Convert.ToDouble(price.Text) / 100;
     InfoEntity IE = new InfoEntity();
     IE.daywin += temp - daywinMark;
     daywinMark = temp;
     IE.upwin = Convert.ToDouble(hold.Text) * (Convert.ToDouble(s) - upwinMark) * Convert.ToDouble(price.Text) / 100;
     upwinMark = Convert.ToDouble(s);
     changeValues(IE);
 }
Ejemplo n.º 4
0
        private void pricesync(TextBox tb, string s)
        {
            tb.Text = s;
            double m = Convert.ToDouble(hold.Text) * Convert.ToDouble(s);
            money.Text = m.ToString();
            double ud = m - basemoney;
            updown.Text = Adapter.DataAdapter.RealTwo(ud);

            InfoEntity IE = new InfoEntity();
            IE.win = m - totalMark;
            IE.price = m - priceMark;
            changeValues(IE);
            totalMark = m;
            priceMark = m;
        }
Ejemplo n.º 5
0
 public InfoDelegate(SetWin setWin)
 {
     info        = new InfoEntity();
     this.setWin = setWin;
 }
Ejemplo n.º 6
0
 public InfoDelegate(SetWin setWin)
 {
     info = new InfoEntity();
     this.setWin = setWin;
 }