private void displayChairmanPage() { //This was when chairman button displaying chariman CV, now it will display his message //int chairmanLine = 0; //int lineCount = File.ReadAllLines(variables.controlFilePath).Length; //for (int i=1; i<lineCount; ++i) //{ // if (controlFile.checkIfChairman(i)) // { // chairmanLine = i; // i = lineCount; // } //} //variables.preparePdfFile(chairmanLine); variables.pdfPath = variables.requiredResourcePath + "chairman.pdf"; variables.chairmanMessageDisplayed = true; variables.teacherInfoWindow = this; pdfWindow pdfWindow = new pdfWindow(); variables.previousCurrentWindow = variables.currentWindow; variables.currentWindow = pdfWindow; pdfWindow.Show(); this.Close(); }
private void buttonTeacherObject(string teacherName) { variables.teacherInfoWindow = this; requiredTeacherLineNumber = controlFile.getLineNumberTeacherWindow(teacherName); variables.preparePdfFile(requiredTeacherLineNumber); pdfWindow pdfWindow = new pdfWindow(); variables.previousCurrentWindow = variables.currentWindow; variables.currentWindow = pdfWindow; pdfWindow.Show(); }