private void DisplayLoadingScreen() { loadingScreen = new LoadingScreen(surveryMakerGrid.Location.X, surveryMakerGrid.Location.Y, this); UpdateUI(false); }
private void createQuestionairreButton_Click(object sender, EventArgs e) { loadingScreen = new LoadingScreen(surveryMakerGrid.Location.X, surveryMakerGrid.Location.Y, this); Thread t = new Thread(new ThreadStart(CreateNewSurvey)); t.SetApartmentState(System.Threading.ApartmentState.STA); t.IsBackground = true; t.Start(); // CreateNewSurvey(); UpdateUI(false); }
//opens surveys and answers into the tool private void openSurveysToolStripMenuItem_Click(object sender, EventArgs e) { ClientDataControl.SetParticipants(new List<Person>()); ClientDataControl.SetCupeAnswers(new List<CupeData>()); LoadingScreen loadingScreen = new LoadingScreen(questionGridBusiFuture.Location.X, questionGridBusiFuture.Location.Y, this ); UpdateUI(false); Thread t = new Thread(new ThreadStart(LoadSurveys)); t.SetApartmentState(System.Threading.ApartmentState.STA); t.IsBackground = true; t.Start(); var SurveyReader = new SurveyReader(); SurveyReader.ReadSurveyCUPE(ClientDataControl.GetParticipants()); removePersonColumns(); loadColumnNames(); LoadAnswersFromDataControl(); ClientDataControl.SaveCUPE(); ClientDataControl.SaveParticipantsToDB(); UpdateUI(true); //Help / Tutorial Step if (HelpEnabled && HelpCurrentStep == 1) { HelpCurrentStep = 2; StartTutorialMode(); } }