private void addButton_Click(object sender, EventArgs e)
        {
            ChoreFactory  factory  = new ChoreFactory();
            Chore         newChore = factory.Generate("", "", 0.50);
            EditChoreForm form     = new EditChoreForm(newChore);

            form.ShowDialog();

            if (form.SavedChore.IsEmpty == false)
            {
                AddChoreToView(form.SavedChore);
            }
        }
Пример #2
0
 private void SetDefaults()
 {
     dao        = new ChoresDao();
     factory    = new ChoreFactory();
     SavedChore = ChoreFactory.Empty;
 }