private void btnViewMore_Click(object sender, EventArgs e)
        {
            int index = dgvClub.CurrentRow.Index;

            if (index != -1 && !(String.IsNullOrEmpty(dgvClub.Rows[index].Cells[0].Value?.ToString())))
            {
                //clubAchievementMaintenance ca = new clubAchievementMaintenance((int)dgvClub.Rows[index].Cells[0].Value);
                //clubActivityMaintenance ca = new clubActivityMaintenance((int)dgvClub.Rows[index].Cells[0].Value);
                viewClubDetails ca = new viewClubDetails((int)dgvClub.Rows[index].Cells[0].Value);
                ca.Show();
                this.Hide();
            }
        }
示例#2
0
 private void clubAchievementMaintenance_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (this.role == "student")
     {
         stdDashboard sd = new stdDashboard(this.usrid);
         sd.Show();
         this.Hide();
     }
     else
     {
         viewClubDetails ad = new viewClubDetails(this.clubID, this.usrid, "admin");
         ad.Show();
         this.Hide();
     }
 }
示例#3
0
 private void pbxClub_Click(object sender, EventArgs e)
 {
     if (clubMembership.checkIsSecretary(this.usrid))
     {
         viewClubDetails vcd = new viewClubDetails(clubMembership.getClubID(this.usrid), this.usrid, "student");
         vcd.Show();
         this.Dispose();
     }
     else
     {
         viewClub vc = new viewClub(this.usrid);
         vc.Show();
         this.Dispose();
     }
 }