Example #1
0
        private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            int rowhandle = this.gridView1.FocusedRowHandle;

            MyModels.ddmemcard2 ddmemcard2 = new MyModels.ddmemcard2();
            ddmemcard2.addtime    = this.gridView1.GetRowCellValue(rowhandle, "addtime").ToString();
            ddmemcard2.birthday   = this.gridView1.GetRowCellValue(rowhandle, "birthday").ToString();
            ddmemcard2.cardid     = this.gridView1.GetRowCellValue(rowhandle, "cardid").ToString();
            ddmemcard2.cardno     = this.gridView1.GetRowCellValue(rowhandle, "cardno").ToString();
            ddmemcard2.expirydate = this.gridView1.GetRowCellValue(rowhandle, "expirydate").ToString();
            ddmemcard2.money      = this.gridView1.GetRowCellValue(rowhandle, "money").ToString();
            ddmemcard2.telno      = this.gridView1.GetRowCellValue(rowhandle, "telno").ToString();
            ddmemcard2.realname   = this.gridView1.GetRowCellValue(rowhandle, "realname").ToString();
            if (e.Button.Index == 0)
            {
                MyForm.MemberManagement.MemberDetaileForm memberDetaileForm = new MyForm.MemberManagement.MemberDetaileForm(ddmemcard2);
                memberDetaileForm.StartPosition = FormStartPosition.CenterScreen;
                memberDetaileForm.ShowDialog();
            }
            else
            {
                MyForm.MemberManagement.RechargeForm rechargeForm = new MyForm.MemberManagement.RechargeForm(ddmemcard2);
                rechargeForm.StartPosition = FormStartPosition.CenterScreen;
                rechargeForm.ShowDialog();
                RefreshGridList();
            }
        }
Example #2
0
 public RechargeForm(MyModels.ddmemcard2 ddmemcard2)
 {
     MyControl.MemberManagement.RechargeControl recharge = new MyControl.MemberManagement.RechargeControl(ddmemcard2);
     recharge.CloseEvent += MyCloseEvent;
     recharge.Dock        = DockStyle.Fill;
     this.Controls.Add(recharge);
     InitializeComponent();
 }
 public RechargeControl(MyModels.ddmemcard2 ddmemcard2)
 {
     InitializeComponent();
     this.Lab_money.Text     = ddmemcard2.money;
     this.cardid             = ddmemcard2.cardid;
     this.Txt_money.Text     = "0";
     this.Txt_songmoney.Text = "0";
 }
Example #4
0
        public MemberDetaileForm(MyModels.ddmemcard2 ddmemcard2)
        {
            MyControl.MemberManagement.MemberDetaileControl memberDetaile = new MyControl.MemberManagement.MemberDetaileControl(ddmemcard2);
            memberDetaile.Dock = DockStyle.Fill;
            this.Controls.Add(memberDetaile);
            InitializeComponent();

            MyEvent.MemberManagement.MemberDetaileEvent.CloseEvent += MyCloseEvent;
        }
 public MemberDetaileControl(MyModels.ddmemcard2 ddmemcard2)
 {
     InitializeComponent();
     this.Lab_addtime.Text    = ddmemcard2.addtime;
     this.Lab_birthday.Text   = ddmemcard2.birthday;
     this.Lab_cardno.Text     = ddmemcard2.cardno;
     this.Lab_expirydate.Text = ddmemcard2.expirydate;
     this.Lab_money.Text      = ddmemcard2.money;
     this.Lab_realname.Text   = ddmemcard2.realname;
     this.Lab_telno.Text      = ddmemcard2.telno;
     this.cardid = ddmemcard2.cardid;
 }