예제 #1
0
        private void btnRegisterNewVIP_Click(object sender, EventArgs e)//注册会员
        {
            frmRegisterNewVIP myfrmRegisterNewVIP = new frmRegisterNewVIP();

            if (myfrmRegisterNewVIP.ShowDialog() == DialogResult.OK)
            {
                InitializeControls();
            }
        }
예제 #2
0
        private void btnUpdateVIPInfo_Click(object sender, EventArgs e) //修改会员信息
        {
            if (this.gridViewOne.SelectedRowsCount <= 0)                //如果一行都没有选中
            {
                XtraMessageBox.Show("请选择要修改的项!", "注意:", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            //object[] tempInfo =ClassAssist.CommonOperator.GetGVSelectRowInfo(this.gridViewOne);//选中行的数据;
            DataRow           tempDataRow         = this.gridViewOne.GetFocusedDataRow();
            string            VIPName             = this.txtVIPName.Text.Trim().ToString();
            frmRegisterNewVIP myfrmRegisterNewVIP = new frmRegisterNewVIP(tempDataRow, VIPName);

            if (myfrmRegisterNewVIP.ShowDialog() == DialogResult.OK)
            {
                InitializeControls();
            }
        }