Пример #1
0
 private void button6_Click(object sender, EventArgs e)//添加消费
 {
     if (label22.Text != "")
     {
         AddTheConsumption xiaofei = new AddTheConsumption();
         xiaofei.huiyanbh = int.Parse(label22.Text);
         xiaofei.jine     = float.Parse(label27.Text.ToString());
         xiaofei.Balance  = float.Parse(dataGridView1.SelectedRows[0].Cells[3].Value.ToString());
         xiaofei.ShowDialog(this);
         this.button1_Click(sender, e);
     }
     else
     {
         MessageBox.Show("请先选择会员");
     }
 }
Пример #2
0
        private void listView2_DoubleClick(object sender, EventArgs e)//组件双击事件
        {
            AddTheConsumption cc = new AddTheConsumption();

            cc.ShowDialog();
        }