コード例 #1
0
        public EditDogEventResultsForm( Member member, Dog dog, DogEvent dogEvent, DogEventResults results )
        {
            Member = member;
            Dog = dog;
            DogEvent = dogEvent;
            DogEventResults = results;

            InitializeComponent();

            UI();

            Bind();
        }
コード例 #2
0
ファイル: DogEventResults.cs プロジェクト: sorrowed/DogWorks
        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;
        }