Example #1
0
        private void buttonReproductiveStates_Click(object sender, EventArgs e)
        {
            ReproductiveStateChanges rsc = new ReproductiveStateChanges(troopVisit);

            rsc.LoadData();
            if (rsc.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                ChangeStage(Stage.Finished);
            }
        }
Example #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            Troop t = Session.Get <Troop>("J");
            IList <TroopVisit> tvs = Session
                                     .CreateQuery("from TroopVisit as tv " +
                                                  "where tv.Troop = :troop " +
                                                  "and Date = :date ")
                                     .SetParameter <Troop>("troop", t)
                                     .SetParameter <DateTime>("date", new DateTime(2009, 11, 07))
                                     .List <TroopVisit>();
            ReproductiveStateChanges rsc = new ReproductiveStateChanges(tvs[0]);

            rsc.LoadData();
            rsc.ShowDialog();
        }