public PersonViewModel(PersonType person)
        {
            _person = person;

            _iDCtrl = new IdentifierTypeCTRL(person.Id);

            IDContent = _iDCtrl;

            AppBarCommands = new AppBarCommandsClass(this);

            Anonymous Item;
        }
Example #2
0
        private PersonType _personType;// = Utilities.Repository.CreateNewPerson();

        #endregion

        #region behaviors and methods

        public MainPageViewModel()
        {
            //initiate all ICommands, display the default UI and
            //initiate dictionaries based on Application Enums
            Utilities.Repository.CurrentPerson = Utilities.Repository.CreateNewPerson();
            _personType = Utilities.Repository.CurrentPerson;
            //StatusPersonName = Utilities.Repository.CurrentPerson.Name.FormattedName;

            AppBarCommands = new AppBarCommandsClass(this);
            MainContent    = _HomeCTRL;
            MCSI.UWP.HROpen.Controls.Utilities.EnumDictionaries.Init();

            CreatePeopleControlInstance();

            timer          = new DispatcherTimer();
            timer.Tick    += Timer_Tick;
            timer.Interval = new TimeSpan(0, 0, 1);
        }
Example #3
0
        public AddressEditViewModel(Anonymous address)
        {
            AppBarCommands            = new AppBarCommandsClass(this);
            SubDivisionChangedCommand = new SubDivisionChangedCommandClass(this);
            _address = address;

            SelectedCountryChangedCommand = new SelectedCountryChangedCommandClass(this);
            //address.AvailablePeriod
            //address.FormattedAddress
            //address.GeoLocation
            //address.Name
            //address.ExtendedLines
            //--==Done==--
            //address.City
            //address.CountryCode
            //address.CountrySubDivisions[0].
            //address.ExtendedLines
            //address.Line
            // address.PostalCode
            //address.PostOfficeBox
            //address.Preference
            //address.UseCode
            // address.UseCode
        }
Example #4
0
 public PersonLocaterViewModel()
 {
     AppBarCommands   = new AppBarCommandsClass(this);
     PersonFileStatus = Utilities.Repository.CurrentPersonStatus();
 }