Exemplo n.º 1
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            TroopVisitEditor tve = new TroopVisitEditor(Session, bindingList[dataGridView1.CurrentRow.Index]);

            tve.ShowDialog();
            RefreshData();
        }
Exemplo n.º 2
0
        private void buttonNew_Click(object sender, EventArgs e)
        {
            TroopVisitEditor tve = new TroopVisitEditor(Session);

            if (tve.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.bindingList.Insert(0, tve.TroopVisit);
            }
        }
Exemplo n.º 3
0
        private void buttonTroopVisit_Click(object sender, EventArgs e)
        {
            TroopVisitEditor tve = new TroopVisitEditor(Session);

            if (tve.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.troopVisit = tve.TroopVisit;
                Session.SaveOrUpdate(troopVisit);
                // Go to the next stage
                this.ChangeStage(Stage.NewIndividuals);
            }
        }