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

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

        }