//Going to staff management form when click on staffmanagement button from dashboard
        private void staffdash_Click(object sender, EventArgs e)
        {
            StaffManagement stm = new StaffManagement();

            this.Hide();
            stm.ShowDialog();
        }
        //back button
        private void button4_Click(object sender, EventArgs e)
        {
            StaffManagement sm = new StaffManagement();

            this.Hide();
            sm.ShowDialog();
        }