/// <summary> /// /// </summary> /// <param name="origin"></param> public void Update(FIR fir) { if (fir == null) throw new ArgumentNullException("fir"); _dataContext.SubmitChanges(); }
public FIRViewModel(FIR fir, FIRService firService) { if (fir == null) throw new ArgumentNullException("fir"); if (firService == null) throw new ArgumentNullException("firService"); _fir = fir; _firService = firService; // _customerType = Strings.CustomerViewModel_CustomerTypeOption_NotSpecified; }
/// <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(FIR fir) { if (fir == null) throw new ArgumentNullException("fir"); if (!_FIRs.Contains(fir)) { _FIRs.Add(fir); _dataContext.FIRs.InsertOnSubmit(fir); _dataContext.SubmitChanges(); if (this.FIRAdded != null) this.FIRAdded(this, new EntityAddedEventArgs<FIR>(fir)); } }
public FIRViewModel(FIR fir, FIRService firService, ObservableCollection<WorkspaceViewModel> parent) : this(fir, firService) { parentWorkSpaces = parent; }
public List<Aerodom> GetAllAerodomsForFIR(FIR fir) { var aeroService = new AerodomService(_dataContext); List<Aerodom> aeroList = aeroService.GetAerodoms(); return aeroList.Where(x => x.FIR == fir).OrderBy(x => x.Code).ToList(); }
private void detach_NTM_FIRs(FIR entity) { this.SendPropertyChanging(); entity.Origin = null; }
private void attach_NTM_FIRs(FIR entity) { this.SendPropertyChanging(); entity.Origin = this; }
/// <summary> /// Returns true if the specified origin exists in the /// repository, or false if it is not. /// </summary> public bool ContainsFIR(FIR fir) { if (fir == null) throw new ArgumentNullException("fir"); return _FIRs.Contains(fir); }
/// <summary> /// /// </summary> /// <param name="origin"></param> public void Delete(FIR fir) { }