예제 #1
0
파일: Form1.cs 프로젝트: EmonHossain/Bat
        public Form1()
        {
            InitializeComponent();
            //pictureBox1.BackColor = Color.Transparent;
            player = new Player(PlayerPictureBox,progressBar1);
            bat = new Bat(BatPictureBox);

            rect = new Rectangle(75, 56, 380, 139);
            progressBar1.Value = 100;

            timer = new Timer();
            timer.Interval = 50;
            timer.Tick += new EventHandler(timer_Tick);
            timer.Enabled = true;
            timer.Start();
        }
예제 #2
0
        public Form1()
        {
            InitializeComponent();
            //pictureBox1.BackColor = Color.Transparent;
            player = new Player(PlayerPictureBox, progressBar1);
            bat    = new Bat(BatPictureBox);

            rect = new Rectangle(75, 56, 380, 139);
            progressBar1.Value = 100;

            timer          = new Timer();
            timer.Interval = 50;
            timer.Tick    += new EventHandler(timer_Tick);
            timer.Enabled  = true;
            timer.Start();
        }