예제 #1
0
 private void tsbAddGast_Click(object sender, EventArgs e)
 {
     AddGast addGastForm = new AddGast(Data.DatasetFactory.WeddingPlan.Gast.NewGastRow());
     if ((addGastForm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK))
     {
         DatasetFactory.WeddingPlan.Gast.AddGastRow(addGastForm.Gast); // TODO nettere oplossing
         DatasetFactory.WeddingPlan.Gast.AcceptChanges();
         ReloadDataSource();
     }
 }
예제 #2
0
        private void tsbAddGast_Click(object sender, EventArgs e)
        {
            AddGast addGastForm = new AddGast(Data.DatasetFactory.WeddingPlan.Gast.NewGastRow());

            if ((addGastForm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK))
            {
                DatasetFactory.WeddingPlan.Gast.AddGastRow(addGastForm.Gast); // TODO nettere oplossing
                DatasetFactory.WeddingPlan.Gast.AcceptChanges();
                ReloadDataSource();
            }
        }