Esempio n. 1
0
 /// <summary>
 /// Funkce volana pri odstraneni do seznamu historii.
 /// </summary>
 /// <param name="schedule">
 /// Historie, ktera se odstranuje ze seznamu.
 /// </param>
 private void removeHistoriesRef(History history)
 {
     OnPropertyChanging();
     history.ActivityRef = null;
 }
Esempio n. 2
0
 public void deleteHistory(History history)
 {
     if (history.ActivityRef != null) { history.ActivityRef.HistoriesRef.Remove(history); }
     AllHistoryItems.Remove(history);
     db.History.DeleteOnSubmit(history);
     db.SubmitChanges();
 }
Esempio n. 3
0
 /// <summary>
 /// Funkce volana pri pridani do seznamu historii.
 /// </summary>
 /// <param name="schedule">
 /// Historie, ktera se pridava do seznamu.
 /// </param>
 private void addHistoriesRef(History history)
 {
     OnPropertyChanging();
     history.ActivityRef = this;
 }
Esempio n. 4
0
 public void CreateHistory(Activity activity, DateTime from, DateTime to)
 {
     History history = new History { From = from, To = to };
     activity.HistoriesRef.Add(history);
     db.History.InsertOnSubmit(history);
     db.SubmitChanges();
     AllHistoryItems.Add(history);
 }