コード例 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     bl = new Banlance(vip);
     bl.ExecAdd((int)numericUpDown1.Value, BanlanceType.充值);
     textBox4.Text            = (Convert.ToInt32(textBox4.Text) + numericUpDown1.Value).ToString();
     dataGridView1.DataSource = bl.ShowHistory();
     SetdataGridViewHeaderCell();
 }
コード例 #2
0
 public AddBalance(VIPManagement v)
 {
     InitializeComponent();
     vip                      = v;
     bl                       = new Banlance(vip);
     textBox1.Text            = v.VipCard;
     textBox2.Text            = v.UserName;
     textBox3.Text            = v.VipType;
     textBox4.Text            = v.Balance.ToString();
     textBox5.Text            = v.PhoneNumber;
     groupBox1.Enabled        = false;
     dataGridView1.DataSource = bl.ShowHistory();
     SetdataGridViewHeaderCell();
 }