예제 #1
0
파일: AnrlClient.cs 프로젝트: helios57/anrl
 void PPick_OnPilotOk(object sender, EventArgs e)
 {
     if (lstTrackers.SelectedItems.Count ==1)
     {
         int TrackerId = int.Parse(lstTrackers.SelectedItems[0].Text);
         PilotEntry PE = new PilotEntry(InformationPool.PilotList.Single(panelConnection => panelConnection.ID == (Int32)sender));
         InformationPool.Client.AddPilot(int.Parse(PE.ID),TrackerId, PE.LastName, PE.SureName, PE.PilotColor, PE.Picture.Bytes,PE.FlagId);
     }
     LoadTrackerList();
 }
예제 #2
0
파일: AnrlClient.cs 프로젝트: helios57/anrl
 private void CheckPilotListChecked()
 {
     InformationPool.PilotsToBeDrawn.Clear();
     foreach (Object o in lstVisualPilotsToShow.CheckedItems)
     {
         PilotLst pl = (PilotLst)o;
         PilotEntry p = new PilotEntry();
         p.ID_Tracker = pl.p.ID_Tracker;
         p.ID = pl.p.ID.ToString();
         p.PilotColor = pl.p.Color;
         p.LastName = pl.p.LastName;
         p.SureName = pl.p.SureName;
         InformationPool.PilotsToBeDrawn.Add(p);
         if (InformationPool.rankform != null)
         {
             InformationPool.rankform.InitializeRankingEntries();
         }
     }
 }