Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            FormMain.CheckCarNotify(car);
            List <Team> list = new List <Team>();
            Team        team = new Team(car.Team);

            team.Cars.Add(car);
            list.Add(team);
            if (car.Protocol == Constant.PROTOCOL_QICHUAN)
            {
                FormPtXunLuoShu frm = new FormPtXunLuoShu(mainFrm, FormMain.user.TeamList, car.CarID);
                frm.Show();
            }
            else if (car.Protocol == Constant.PROTOCOL_TIANHE)
            {
                FormPtTianHe frm = new FormPtTianHe(mainFrm, FormMain.user.TeamList, car.CarID);
                frm.Show();
            }
        }
Ejemplo n.º 2
0
 private void button3_Click(object sender, EventArgs e)
 {
     FormMain.CheckCarNotify(car);
     List<Team> list = new List<Team>();
     Team team = new Team(car.Team);
     team.Cars.Add(car);
     list.Add(team);
     if(car.Protocol == Constant.PROTOCOL_QICHUAN)
     {
         FormPtXunLuoShu frm = new FormPtXunLuoShu(mainFrm, FormMain.user.TeamList, car.CarID);
         frm.Show();
     }
     else if(car.Protocol == Constant.PROTOCOL_TIANHE)
     {
         FormPtTianHe frm = new FormPtTianHe(mainFrm, FormMain.user.TeamList, car.CarID);
         frm.Show();
     }
 }