コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the VisitForm class.
        /// </summary>
        /// <param name="visit">Visit type visit parameter</param>
        public VisitForm(Visit visit)
        {
            InitializeComponent();

            this.visit = visit;

            visitRepository = new VisitRepository(new VisitOracleContext());

            observations = new List<Observation>();

            visitList = new Visits();
        }
コード例 #2
0
 public void Initialize()
 {
     specie = new Specie("Ab", "Ab", DateTime.MinValue, DateTime.MaxValue, 5);
     observation = new Observation(1, 1, specie, ObservationType.BirdPresent, 5, 5, 5);
     observation2 = new Observation(1, 1, specie, ObservationType.TerritoryIndicating, 5, 5, 5);
     observation3 = new Observation(1, 1, specie, ObservationType.NestIndicating, 5, 5, 5);
     visit = new Visit(1, 1, DateTime.MinValue, DateTime.MaxValue, null);
     area = new Area(1, 1, "Test", "Image", null);
     project = new Project(1, "Project", DateTime.MinValue, DateTime.MaxValue, null);
     visits = new Visits();
     observations = new Observations();
     speciePoint = new SpeciePoint("Sp", 5, 6);
     projectRepo = new ProjectRepository(new ProjectOracleContext());
     visitRepo = new VisitRepository(new VisitOracleContext());
     visitForm = new VisitForm(visit);
     observationForm = new ObservationForm(observation);
     observationForm2 = new ObservationForm(5, 5, 5, 5);
 }