Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            label1.Text       = "Gate Close";
            pictureBox1.Image = WindowsFormsApplication1.Properties.Resources.Close;
            int no = i - 1;

            MessageBox.Show(CarPark.Car[no]);
            //myData.Write("F");

            FormLoc q = new FormLoc();

            q.Show();
        }
Example #2
0
        private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int index = this.listBox1.IndexFromPoint(e.Location);

            if (index != System.Windows.Forms.ListBox.NoMatches)
            {
                MessageBox.Show(index.ToString("gg"));
                MessageBox.Show(index.ToString("ok"));

                FormLoc frm = new FormLoc();
                frm.Show();
            }
        }