Ejemplo n.º 1
0
        private void  除选定行ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            leave newleave = new leave();

            newleave.DeleteLivein("account", "id", Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value));
            dataGridView1.Rows.RemoveAt(index);
        }
Ejemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            leaveNum++;
            leave newleave = new leave();

            newleave.Text = $"退房登记 {leaveNum}";
            newleave.Show();
        }
Ejemplo n.º 3
0
        private void  除选定行ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            leave newleave = new leave();

            if (dgvHouse.Visible == true)
            {
                newleave.DeleteLivein("roomTable", "id", Convert.ToInt32(dgvHouse.CurrentRow.Cells[0].Value));
                dgvHouse.Rows.RemoveAt(houseIndex);
            }
            else
            {
                newleave.DeleteLivein("money", "id", Convert.ToInt32(dgvIncome.CurrentRow.Cells[0].Value));
                dgvIncome.Rows.RemoveAt(incomeIndex);
            }
        }