public User(string name) { this.name = name; listSessions = new List <Session>(); A_first = 0; LettersController.init(); statisticLetters = LettersController.statisticLetters; }
private void rangeOfTask() { List <string> lines = null; if (wordsRadioButton.Checked) { lines = MyTextReader.read(MyTextReader.CONTROL_WORDS); if (lines != null) { task = Controller.generateTask_Words(lines, maxWords); sessionType = Session.CONTROL_WORDS_SESSION; } else { showFileNotFoundMessage(); } } if (textRadioButton.Checked) { lines = MyTextReader.read(MyTextReader.CONTROL_TEXT); if (lines != null) { task = Controller.generateTask_ControlText(lines); sessionType = Session.CONTROL_TEXT_SESSION; } else { showFileNotFoundMessage(); } } if (lettersRadioButton.Checked) { LettersController.init(); LettersController.statisticLetters = selectedUser.statisticLetters; task = LettersController.getRandomLine(); //task = Convert.ToString(LettersController.getLetterHasMaxMiniseconds()); taskLabel.Text = task; sessionType = Session.CONTROL_LETTERS_SESSION; LettersLogger.setUserAndCreateLog(userName); } }