public EditDogEventResultsForm( Member member, Dog dog, DogEvent dogEvent, DogEventResults results )
        {
            Member = member;
            Dog = dog;
            DogEvent = dogEvent;
            DogEventResults = results;

            InitializeComponent();

            UI();

            Bind();
        }
示例#2
0
        public static DogEventResults Create( Dog dog, DogEvent dogEvent )
        {
            var result = new DogEventResults()
            {
                DogId = dog.Id,
                DogEventId = dogEvent.Id
            };

            return result;
        }
示例#3
0
 private void Push( DogEventResults results )
 {
     popped = results;
 }
示例#4
0
        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 );
        }
示例#5
0
        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;
        }