Beispiel #1
0
        /// <summary>
        /// Creates the pop-up window for a challenge from the other form Pop-up_Form
        /// and shows it as a dialog to make it impossible for the user to interact with the main form
        /// </summary>
        public void createChallengePopUp()
        {
            Pop_up pop_up = new Pop_up();

            pop_up.Text = "Congratulations you have finished the chosen challenge!";
            pop_up.ShowDialog();
        }
Beispiel #2
0
        /// <summary>
        /// Creates the pop-up window for a activity from the other form Pop-up_Form
        /// and shows it as a dialog to make it impossible for the user to interact with the main form
        /// </summary>
        public void createActivityPopUp()
        {
            Pop_up pop_up = new Pop_up();

            pop_up.Text = "Congratulations you have finished the chosen activity!";
            pop_up.ShowDialog();
        }
Beispiel #3
0
        /// <summary>
        /// Creates an pop-up for activity.
        /// </summary>
        public void createActivityPopUp()
        {
            Pop_up pop_up = new Pop_up(presenter);

            pop_up.Text = "Finished activity!";
            pop_up.ShowDialog();
        }
    //R E T R I E V E     B U T T O N
    private void button3_Click(object sender, EventArgs e)
    {
        string recipeName = comboBox1.SelectedItem.ToString();
        Pop_up p          = new Pop_up(recipeName, dset);

        p.Show();
    }
Beispiel #5
0
        /// <summary>
        /// Creates a pop-up for a challenge
        /// </summary>
        public void createChallengePopUp()
        {
            Pop_up pop_up = new Pop_up(presenter);

            pop_up.Text          = "Finished challenge!";
            pop_up.textBox1.Text = "Give this challenge a rating!";
            pop_up.ShowDialog();
        }