示例#1
0
        /*
         * 图书信息的增加,跳转界面
         */
        private void btn_AddBk_Click(object sender, EventArgs e)
        {
            UpdateFlag = 1;
            UpdateBooks f_upBk = new UpdateBooks();

            f_upBk.Show();
        }
示例#2
0
        /*
         * 借阅信息的修改
         */
        private void btn_updateBk_Click(object sender, EventArgs e)
        {
            UpdateFlag = 2;
            for (int i = 0; i < dataGridView1.Rows.Count; i++)
            {
                if (dataGridView1.Rows[i].Selected == true)
                {
                    Updatename   = dataGridView1.Rows[i].Cells[0].Value.ToString();
                    Updatenum    = dataGridView1.Rows[i].Cells[1].Value.ToString();
                    Updatebuff   = dataGridView1.Rows[i].Cells[2].Value.ToString();
                    Updatekind   = dataGridView1.Rows[i].Cells[3].Value.ToString();
                    Updateauther = dataGridView1.Rows[i].Cells[4].Value.ToString();
                }
            }
            Console.WriteLine(Updatename + Updatenum + Updatebuff);
            UpdateBooks f_upBk = new UpdateBooks();

            f_upBk.ShowDialog();
        }