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

        }
Esempio n. 2
0
        public AerodomViewModel(Aerodom aerodom, AerodomService aerodomService)
        {
            if (aerodom == null)
                throw new ArgumentNullException("aerodom");

            if (aerodomService == null)
                throw new ArgumentNullException("aerodomService");

            _aerodom = aerodom;
            _aerodomService = aerodomService;
        }
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(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));
            }
        }
Esempio n. 4
0
 public AerodomViewModel(Aerodom aerodom, AerodomService aerodomService, ObservableCollection<WorkspaceViewModel> parent)
     : this(aerodom, aerodomService)
 {
     parentWorkSpaces = parent;
 }
Esempio n. 5
0
        /// <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);
        }
Esempio n. 6
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="origin"></param>
        public void Delete(Aerodom aerodom)
        {

        }