Exemple #1
0
 public void change(InfoEntity e)
 {
     info.win    += e.win;
     info.price  += e.price;
     info.upwin   = e.upwin;
     info.daywin += e.daywin;
     setValues();
 }
Exemple #2
0
 public void change(InfoEntity e)
 {
     info.win += e.win;
     info.price += e.price;
     info.upwin = e.upwin;
     info.daywin += e.daywin;
     setValues();
 }
 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);
 }
        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;
        }
Exemple #5
0
 public InfoDelegate(SetWin setWin)
 {
     info        = new InfoEntity();
     this.setWin = setWin;
 }
Exemple #6
0
 public InfoDelegate(SetWin setWin)
 {
     info = new InfoEntity();
     this.setWin = setWin;
 }