Пример #1
0
        private void chkFertilizer_CheckedChanged(object sender, EventArgs e)
        {
            if (chkFertilizer.Checked == true)
            {
                DateTime lastFertilizing = DateTime.Today;
                DateTime nextFertilize   = lastFertilizing.AddDays(9);

                orchid.NextFertilizing = Convert.ToString(nextFertilize);
                OrchidDB.SaveOrchid(orchid);
            }
        }
Пример #2
0
 public void Save()
 {
     OrchidDB.SaveOrchid(orchid);
 }