//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 cursosToolStripMenuItem_Click(object sender, EventArgs e) { if (!isCursosOpen) { cursos = new FormCursos(this, idStudent, idAccount); cursos.Show(); cursos.WindowState = FormWindowState.Minimized; cursos.WindowState = FormWindowState.Maximized; isCursosOpen = true; } else { cursos.Focus(); } }