Beispiel #1
0
        /// <summary>
        /// Method to execute create mud command
        /// </summary>
        public void Execute()
        {
            // creating new formCreated
            FormCreated formCreated = new FormCreated();

            // setting labelCreated text
            formCreated.labelCreated.Text = "MUD CREATED!";
            // setting pictureBox size mode
            formCreated.pictureBoxCreated.SizeMode = PictureBoxSizeMode.CenterImage;
            // setting pictureBox image
            formCreated.pictureBoxCreated.Image = Properties.Resources.mud;
            // showing formCreated
            formCreated.ShowDialog();
        }
        /// <summary>
        /// Method to execute create energy command
        /// </summary>
        public void Execute()
        {
            // creating new formCreated
            FormCreated formCreated = new FormCreated();

            // setting labelCreated text
            formCreated.labelCreated.Text = "ENERGY CREATED!";
            // setting pictureBox size mode
            formCreated.pictureBoxCreated.SizeMode = PictureBoxSizeMode.CenterImage;
            // setting pictureBox size
            formCreated.pictureBoxCreated.Size = new System.Drawing.Size(150, 100);
            // setting pictureBox location
            formCreated.pictureBoxCreated.Location = new System.Drawing.Point(85, 100);
            // setting pictureBox image
            formCreated.pictureBoxCreated.Image = Properties.Resources.energy;
            // showing formCreated
            formCreated.ShowDialog();
        }