Exemple #1
0
        public override void Update(ViewModelReturnData VMReturnData)
        {
            //Only update this view if visible

            if (VMReturnData.EditCardWarn_Active)
            {
                RFIDCardInfoRead rFIDCardInfoRead = new RFIDCardInfoRead();
                this.View.Visibility = Visibility.Visible;
                EditUID = rFIDCardInfoRead.UIDtoString(VMReturnData.EditCardUID);
            }
            else
            {
                this.View.Visibility = Visibility.Collapsed;
            }
        }
        public override void Update(ViewModelReturnData VMReturnData)
        {
            //Only update this view if visible

            if (VMReturnData.MernokCardPresent_active)
            {
                RFIDCardInfoRead rFIDCardInfoRead = new RFIDCardInfoRead();
                this.View.Visibility = Visibility.Visible;
                if (VMReturnData.CardInField)
                {
                    VMReturnData.NewMernokUID             = VMReturnData.UID;
                    VMReturnData.NewMernokCard            = true;
                    VMReturnData.NewCardWindow            = 1;
                    VMReturnData.NavigationBar_Active     = true;
                    VMReturnData.NewCardDetail_Active     = true;
                    VMReturnData.MernokCardPresent_active = false;
                    VMReturnData.AdvancedMenu_Active      = false;
                }
            }
            else
            {
                this.View.Visibility = Visibility.Collapsed;
            }
        }