Exemple #1
0
 public Form1()
 {
     InitializeComponent();
     createQuizParentWindow = new CreateQuizParentWindow();
     openQuizParentWindow   = new OpenQuizParentWindow();
     printQuizParentWindow  = new PrintQuizParentWindow();
     addSubjectParentWindow = new AddSubjectParentWindow();
     analyticsParentWindow  = new AnalyticsParentWindow();
     GlobalStaticVariablesAndMethods.isCurrentQuizTopicSaved = true;
 }
Exemple #2
0
        private void HideChild()
        {
            createQuizParentWindow.Dispose();
            openQuizParentWindow.Dispose();
            printQuizParentWindow.Dispose();
            addSubjectParentWindow.Dispose();
            analyticsParentWindow.Dispose();

            createQuizParentWindow = new CreateQuizParentWindow();
            openQuizParentWindow   = new OpenQuizParentWindow();
            printQuizParentWindow  = new PrintQuizParentWindow();
            addSubjectParentWindow = new AddSubjectParentWindow();
            analyticsParentWindow  = new AnalyticsParentWindow();
        }
Exemple #3
0
        private void buttonAddSubject_Click(object sender, EventArgs e)
        {
            if (GlobalStaticVariablesAndMethods.isCurrentQuizTopicSaved)
            {
                HideChild();

                AddSubjectParentWindow addSubjectParentWindow = new AddSubjectParentWindow();
                addSubjectParentWindow.ShowDialog();
            }
            else
            {
                GlobalStaticVariablesAndMethods.CreateErrorMessage(GlobalStaticVariablesAndMethods.UnsavedQuizErrorMessage);
            }
        }