public EditDogEventResultsForm( Member member, Dog dog, DogEvent dogEvent, DogEventResults results ) { Member = member; Dog = dog; DogEvent = dogEvent; DogEventResults = results; InitializeComponent(); UI(); Bind(); }
public static DogEventResults Create( Dog dog, DogEvent dogEvent ) { var result = new DogEventResults() { DogId = dog.Id, DogEventId = dogEvent.Id }; return result; }
private void Push( DogEventResults results ) { popped = results; }
public void SetSelectedEventResults( DogEventResults results ) { var ix = dogEventResults.FindIndex( delegate( DogEventResults r ) { return results != null && r.Id == results.Id; } ); DogEventResultsListView.SelectIndex( ix ); DogEventResultsListView.EnsureVisible( ix ); }
private ListViewItem CreateListItem( Dog dog, Member member, DogEvent dogEvent, DogEventResults results ) { var item = new ListViewItem( dog.Name ); item.SubItems.Add( dogEvent.Date.ToShortDateString() ); item.SubItems.Add( member.FullName ); item.SubItems.Add( results.HighJump.ToString() ); item.SubItems.Add( results.FarJump.ToString() ); item.SubItems.Add( results.WallClimb.ToString() ); item.SubItems.Add( results.TugOfWar.ToString() ); item.SubItems.Add( results.SprintRace.ToString() ); item.SubItems.Add( results.WeightPull.ToString() ); return item; }