/// <summary> /// /// </summary> /// <param name="origin"></param> public void Update(Aerodom aerodom) { if (aerodom == null) throw new ArgumentNullException("aerodom"); _dataContext.SubmitChanges(); }
public AerodomViewModel(Aerodom aerodom, AerodomService aerodomService) { if (aerodom == null) throw new ArgumentNullException("aerodom"); if (aerodomService == null) throw new ArgumentNullException("aerodomService"); _aerodom = aerodom; _aerodomService = aerodomService; }
/// <summary> /// Places the specified origin into the repository. /// If the origin is already in the repository, an /// exception is not thrown. /// </summary> public void Insert(Aerodom aerodom) { if (aerodom == null) throw new ArgumentNullException("aerodom"); if (!_Aerodom.Contains(aerodom)) { _Aerodom.Add(aerodom); _dataContext.Aerodoms.InsertOnSubmit(aerodom); _dataContext.SubmitChanges(); if (this.AerodomAdded != null) this.AerodomAdded(this, new EntityAddedEventArgs<Aerodom>(aerodom)); } }
public AerodomViewModel(Aerodom aerodom, AerodomService aerodomService, ObservableCollection<WorkspaceViewModel> parent) : this(aerodom, aerodomService) { parentWorkSpaces = parent; }
/// <summary> /// Returns true if the specified origin exists in the /// repository, or false if it is not. /// </summary> public bool ContainsAerodom(Aerodom aerodom) { if (aerodom == null) throw new ArgumentNullException("aerodom"); return _Aerodom.Contains(aerodom); }
/// <summary> /// /// </summary> /// <param name="origin"></param> public void Delete(Aerodom aerodom) { }