Esempio n. 1
0
 private void addNewRewardToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (_memory == null)
     {
         MessageBox.Show("choose data source");
     }
     else
     {
         var form = new RewardForm();
         if (form.ShowDialog() == DialogResult.OK)
         {
             _memory.AddReward(form.GetReward());
             UpdateTables();
         }
     }
 }
Esempio n. 2
0
 public void AddReward(Reward reward)
 {
     data.AddReward(reward);
 }
Esempio n. 3
0
 public ActionResult Create(Common.Reward reward)
 {
     data.AddReward(reward);
     return(RedirectToAction("Index"));
 }
Esempio n. 4
0
 public void AddReward(Reward reward)
 {
     // logic
     data.AddReward(reward);
 }