Пример #1
0
 private void btn_Statistics_Member_Update_Click(object sender, EventArgs e)
 {
     if (dgv_Statistics_MemberManager.RowCount > 0)
     {
         string str = this.dgv_Statistics_MemberManager.SelectedCells[0].Value.ToString();
         AddAndUpdateSellCardForm updateForm = new AddAndUpdateSellCardForm("UPDATE", Convert.ToInt32(str));
         updateForm.Owner = this;
         updateForm.ShowDialog();
     }
 }
Пример #2
0
 private void btn_Sell_Click(object sender, EventArgs e)
 {
     AddAndUpdateSellCardForm sellCardForm = new AddAndUpdateSellCardForm("ADD",0);
     sellCardForm.SetBusinessType(MemberBusinessType.SellCardType);
     sellCardForm.Owner = this;
     sellCardForm.Show();
     //MemberEditFrm memberEditFrm=new MemberEditFrm();
     //memberEditFrm.SetTitle("售卡");
     //memberEditFrm.SetBusinessType(MemberBusinessType.SellCardType);
     //memberEditFrm.Owner = this;
     //memberEditFrm.Show();
 }