Exemplo n.º 1
0
 public void ReloadQuestionSets()
 {
     testsQuestionSets = new TestQuestionSetSet();
     LoadTests();
     LoadQuestionSets();
     LoadTestContents();
 }
Exemplo n.º 2
0
        private void ReLoadTestsQuestionSets()
        {
            testsQuestionSets = new TestQuestionSetSet();


            ProcessingForm f = new ProcessingForm();

            f.Caption = "Opening Database";
            try

            {
                int nOfOp = 5;
                int op    = 1;

                f.Operation = "Connecting to " + Name + "...";
                f.Show();
                f.Refresh();
                if (!opened)
                {
                    Connect();
                }
                f.Progress = (op++ *100) / nOfOp;

                //2
                f.Operation = "Loading Tests...";
                LoadTests();
                f.Progress = (op++ *100) / nOfOp;

                //3
                f.Operation = "Loading Question Sets...";
                LoadQuestionSets();
                f.Progress = (op++ *100) / nOfOp;

                //4
                f.Operation = "Loading Content of the Tests...";
                LoadTestContents();
                f.Progress = (op++ *100) / nOfOp;

                //5
                f.Operation = "Building the Tree...";
                CreateSubElements();
                OnStructureChangedInternally();
                f.Progress = (op++ *100) / nOfOp;
            }
            finally
            {
                f.Close();
            }
        }