Пример #1
0
 public SearchForm()
 {
     animals = new AnimalControl();
     InitializeComponent();
 }
Пример #2
0
 public AdoptAnimalForm(int animalId)
 {
     InitializeComponent();
     animals    = new AnimalControl();
     thisAnimal = animals.OurAnimals.Where(a => a.AnimalId == animalId).Select(a => a).Single();
 }
Пример #3
0
        private void EmptyRadio_CheckedChanged(object sender, EventArgs e)
        {
            AnimalControl animals = new AnimalControl();

            RoomsDataGrid.DataSource = animals.OurRooms.Where(r => r.AnimalId == "").Select(r => r).ToArray();
        }
Пример #4
0
        private void AllRadio_CheckedChanged(object sender, EventArgs e)
        {
            AnimalControl animals = new AnimalControl();

            RoomsDataGrid.DataSource = animals.OurRooms.OrderBy(r => r.RoomId).Select(r => r).ToArray();
        }
Пример #5
0
        private void ViewRooms_Load(object sender, EventArgs e)
        {
            AnimalControl animals = new AnimalControl();

            RoomsDataGrid.DataSource = animals.OurRooms.Where(r => r.AnimalId != "").OrderBy(r => r.RoomId).Select(r => r).ToArray();
        }