Exemple #1
0
 private void DisplayLoadingScreen()
 {
     loadingScreen = new LoadingScreen(surveryMakerGrid.Location.X, surveryMakerGrid.Location.Y, this);
     UpdateUI(false);
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        //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();
            }
        }