public ImageFileManagerViewModel()
 {
     ImageFileViewModelList = ToImageFileViewModels(Properties.Settings.Default.FileHistory);
     CurrentImageFile       = ImageFileViewModelList.FirstOrDefault(i => i.FullPath == Properties.Settings.Default.LastFilename);
     if (!CurrentImageFile.IsNull)
     {
         CurrentImageFile.BaseAddress = Properties.Settings.Default.BaseAddress;
     }
 }
Exemplo n.º 2
0
//        private blfwkdll.Updater.UpdaterOperationProgressDelegate ProgressCallback =
//            new blfwkdll.Updater.UpdaterOperationProgressDelegate(UpdaterProgress);

        public UpdaterViewModel(DeviceViewModel device)
            : base(device)
        {
            ImageFileModel = null;
            var progress = new Progress <blfwkdll.Updater.UpdaterOperationProgressData>(UpdaterProgress);

            UpdateCommand = new UpdaterAsyncCommand(token => Update(this, progress, token));

            BackdoorKey = Properties.Settings.Default.BackdoorKey;

            Status = "Ready";
            Value  = 0;
            Total  = 100;
        }