コード例 #1
0
 public void GetLogBook()
 {
     lstLogBook.Items.Clear();
     foreach (LogBook l in LogBook.Get())
     {
         lstLogBook.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
         lstLogBook.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
         lstLogBook.Items.Add(new ListViewItem(new string[]
         {
             l.Callsign,
             l.Departure,
             l.Arrival,
             l.Aircraft,
             TimeSpan.FromMinutes(l.FlightTime).ToString(@"hh\:mm"),
             l.FtPerMin.ToString(),
             l.Sum.ToString(),
             l.Eps.ToString()
         }));
     }
 }