Example #1
0
        internal override void EvaluateViewState()
        {
            if (!IsActive)
            {
                return;
            }

            if ((Notifier.CurrentInterface == PhoneInterfaces.Lumia_Flash))
            {
                NokiaFlashModel LumiaFlashModel = (NokiaFlashModel)Notifier.CurrentModel;
                PhoneInfo       Info            = LumiaFlashModel.ReadPhoneInfo();
                ProductType  = Info.Type;
                OperatorCode = "";
                ProductCode  = Info.ProductCode;
            }
            else if (Notifier.CurrentInterface == PhoneInterfaces.Lumia_Normal)
            {
                NokiaPhoneModel LumiaNormalModel = (NokiaPhoneModel)Notifier.CurrentModel;
                OperatorCode = LumiaNormalModel.ExecuteJsonMethodAsString("ReadOperatorName", "OperatorName");                             // Example: 000-NL
                string TempProductType = LumiaNormalModel.ExecuteJsonMethodAsString("ReadManufacturerModelName", "ManufacturerModelName"); // RM-821_eu_denmark_251
                if (TempProductType.IndexOf('_') >= 0)
                {
                    TempProductType = TempProductType.Substring(0, TempProductType.IndexOf('_'));
                }
                ProductType = TempProductType;
                ProductCode = LumiaNormalModel.ExecuteJsonMethodAsString("ReadProductCode", "ProductCode"); // 059Q9D7
            }
        }
 internal NokiaFlashViewModel(NokiaPhoneModel CurrentModel, Action <PhoneInterfaces> RequestModeSwitch, Action SwitchToGettingStarted)
     : base()
 {
     this.CurrentModel           = (NokiaFlashModel)CurrentModel;
     this.RequestModeSwitch      = RequestModeSwitch;
     this.SwitchToGettingStarted = SwitchToGettingStarted;
 }
Example #3
0
        internal NokiaNormalViewModel(NokiaPhoneModel CurrentModel, Action <PhoneInterfaces> RequestModeSwitch)
            : base()
        {
            this.CurrentModel      = CurrentModel;
            this.RequestModeSwitch = RequestModeSwitch;

            new Thread(() => StartLoadDeviceInfo()).Start();
        }
Example #4
0
 internal NokiaModeFlashViewModel(NokiaPhoneModel CurrentModel, Action <PhoneInterfaces?> RequestModeSwitch)
     : base()
 {
     this.CurrentModel      = (NokiaFlashModel)CurrentModel;
     this.RequestModeSwitch = RequestModeSwitch;
 }
Example #5
0
 internal NokiaModeNormalViewModel(NokiaPhoneModel CurrentModel, Action <PhoneInterfaces?> RequestModeSwitch)
     : base()
 {
     this.CurrentModel      = CurrentModel;
     this.RequestModeSwitch = RequestModeSwitch;
 }
 internal NokiaModeMassStorageViewModel(NokiaPhoneModel CurrentModel, Action <PhoneInterfaces?> RequestModeSwitch)
     : base()
 {
     this.CurrentModel      = (MassStorage)CurrentModel;
     this.RequestModeSwitch = RequestModeSwitch;
 }
 internal NokiaModeMassStorageViewModel(NokiaPhoneModel CurrentModel)
     : base()
 {
     this.CurrentModel = CurrentModel;
 }