public static Marksheet GetInstance()
 {
     if (Instance == null)
     {
         Marksheet new_Instance = new Marksheet();
         return(new_Instance);
     }
     return(Instance);
 }
Exemple #2
0
        private void btnMarksheet_Click(object sender, EventArgs e)
        {
            DatabaseConnection.createStatement("Select * from GroupProject where ProjectId = " + TempData.CurrentProject.Id.ToString());
            SqlDataReader reader2 = DatabaseConnection.getData();

            if (reader2.Read())
            {
                TempData.CurrentGroupId = int.Parse(reader2["GroupId"].ToString());
            }
            Marksheet marksheet = Marksheet.GetInstance();

            marksheet.Show();
            this.Hide();
        }