Example #1
0
        private void btn_check_Click(object sender, EventArgs e)
        {
            CheckFrm checkFrm = new CheckFrm();

            checkFrm.FormBorderStyle = FormBorderStyle.None;
            checkFrm.MaximumSize     = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
            checkFrm.WindowState     = FormWindowState.Maximized;
            checkFrm.Show();
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            //todo 判断有没有选中行
            if (this.dgv_tables.SelectedRows.Count == 0)
            {
                MessageBox.Show("请选中一位会员再做检测!", "检测提醒");
                return;
            }
            //todo 获取选中行的用户id
            string[] str = new string[this.dgv_tables.Rows.Count];
            for (int i = 0; i < this.dgv_tables.Rows.Count; i++)
            {
                if (this.dgv_tables.Rows[i].Selected == true)
                {
                    str[i] = this.dgv_tables.Rows[i].Cells[0].Value.ToString();
                }
            }

            CheckFrm checkFrm = new CheckFrm();

            checkFrm.Show();
        }