Example #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="origin"></param>
        public void Update(FIR fir)
        {
            if (fir == null)
                throw new ArgumentNullException("fir");
            _dataContext.SubmitChanges();

        }
Example #2
0
        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;
        }
Example #3
0
        /// <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));
            }
        }
Example #4
0
 public FIRViewModel(FIR fir, FIRService firService, ObservableCollection<WorkspaceViewModel> parent)
     : this(fir, firService)
 {
     parentWorkSpaces = parent;
 }
Example #5
0
 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();
 }
Example #6
0
 private void detach_NTM_FIRs(FIR  entity)
 {
     this.SendPropertyChanging();
     entity.Origin = null;
 }
Example #7
0
 private void attach_NTM_FIRs(FIR  entity)
 {
     this.SendPropertyChanging();
     entity.Origin = this;
 }
Example #8
0
        /// <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);
        }
Example #9
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="origin"></param>
        public void Delete(FIR fir)
        {

        }