예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            FRSCDB frs = new FRSCDB();

            frs.Show();
        }
예제 #2
0
        private void timercarcol2_Tick(object sender, EventArgs e)
        {
            if (pictureBox9.Visible == true)
            {
                Car2.Top = Car2.Top - 0;
            }
            else if (pictureBox10.Visible == true)
            {
                Car2.Top = Car2.Top - 5;
            }

            if (Car1.Bounds.IntersectsWith(Car2.Bounds))
            {
                timercarcol1.Enabled = false;
                // timercarcol1.Stop();
                timercarcol2.Stop();

                // MessageBox.Show("They Have collided");
                FRSCDB frs = new FRSCDB();
                frs.Show();


                frs.textBox1.AppendText(DateTime.Now.ToShortDateString());
                frs.textBox2.AppendText(DateTime.Now.ToLongTimeString());
                frs.textBox3.AppendText(label1.Text);
            }
            timertrafcol2.Enabled = true;
            //timertrafcol1.Enabled = true;
        }