示例#1
0
        private void BOOM(int x, int y)              // прорисовка после взрыва
        {
            Graphics g    = this.CreateGraphics();   //////////////////////
            Bitmap   img1 = new Bitmap("icon1.bmp"); /////////////////////
            Bitmap   img2 = new Bitmap("icon2.bmp");
            Bitmap   img3 = new Bitmap("icon3.bmp");

            g.DrawImage(img1, x - 20, y + 2);
            DateTime dt = DateTime.Now;

            MessageBox.Show("Вы проиграли х(", "БАБАХ!!!");
            g.DrawImage(img2, x - 20, y - 25);
            FormHelp f = new FormHelp(); f.Show(); f.Visible = false; f.Close(); ////////////////////

            g.DrawImage(img3, x - 20, y - 42);                                   //////////////
        }
示例#2
0
        private void BOOM(int x, int y)
        {
            Graphics g    = this.CreateGraphics();
            Bitmap   img1 = new Bitmap("icon1.bmp");
            Bitmap   img2 = new Bitmap("icon2.bmp");
            Bitmap   img3 = new Bitmap("icon3.bmp");

            g.DrawImage(img1, x - 20, y + 2);
            DateTime dt = DateTime.Now;

            MessageBox.Show("Вы проиграли :(");
            g.DrawImage(img2, x - 20, y - 25);
            FormHelp f = new FormHelp(); f.Show(); f.Visible = false; f.Close();

            g.DrawImage(img3, x - 20, y - 42);
            lose++;
            //label2.Text = Convert.ToString(lose);
        }
示例#3
0
        private void справкаToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormHelp Hlp = new FormHelp();

            Hlp.Show();
        }