Exemplo n.º 1
0
        public ScienceStatusViewModel(ScienceStatus scienceStatus)
        {
            if (scienceStatus == null)
            {
                throw new ArgumentNullException("scienceStatus");
            }

            this.Model = scienceStatus;
        }
        private void AddScienceStatus()
        {
            ScienceStatus ss = this.dm.CreateObject <ScienceStatus>();

            ss.Id = GuidComb.Generate();
            this.dm.AddScienceStatus(ss);

            ScienceStatusViewModel vm = new ScienceStatusViewModel(ss);

            this.AllScienceStatuses.Add(vm);
            this.CurrentScienceStatus = vm;
        }