//FormAssignments; public FormMainStudent(FormLogin l, string idAccount) { InitializeComponent(); this.Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); con = new SQLiteConnector(); login = l; this.idAccount = idAccount; isCursosOpen = false; isGradesOpen = false; //IsAssignmentsOpen = false; setTitle(); cursos = null; grades = null; }
private void calificacionesToolStripMenuItem_Click(object sender, EventArgs e) { if (!isGradesOpen) { grades = new FormGrades(this, idStudent); grades.MdiParent = this; grades.Show(); grades.WindowState = FormWindowState.Minimized; grades.WindowState = FormWindowState.Maximized; isGradesOpen = true; } else { grades.Focus(); } }