Beispiel #1
0
 /// <summary>
 /// инициализация списка изображений
 /// </summary>
 private void InitializeImageList()
 {
     for (byte i = 0; i < 16; i++)
     {
         ImageSRCList.Add(GetImageSRC((byte)ModuleSelectionEnum.MODULE_EMPTY));
     }
     ImageSRCList.Add(GetImageSRC((byte)ModuleSelectionEnum.MODULE_SERVICE_POWERSUPPLY));
     ImageSRCList.Add(GetImageSRC((byte)ModuleSelectionEnum.MODULE_SERVICE_CPU));
 }
Beispiel #2
0
 public Picon2ModuleRequestsViewModel()
 {
     this._moduleTypes                  = new ModuleTypeList();
     this._moduleList                   = new ObservableCollection <string>();
     this._moduleListForUI              = new ObservableCollection <string>();
     this._imageSRC                     = new ImageSRCList();
     this._imageSRCList                 = new ObservableCollection <string>();
     this._moduleRequestsForUIList      = new ObservableCollection <string>();
     this._requestsFromDevice           = new ObservableCollection <ModuleRequest>();
     this._requestsToWrite              = new ObservableCollection <ModuleRequest>();
     this.ModuleRequestsGeneratedFromUI = new ObservableCollection <string>();
     this.RequestCount                  = 0;
     this.RequestCountFromDevice        = 0;
     this.MRVCount = 0;
     this.MSDCount = 0;
     this.MSACount = 0;
     this.CrateID  = string.Empty;
     this.IsToggleCrate918Checked = false;
     this.ModuleErrors            = new ObservableCollection <bool?>();
     InitializeModuleList();
     InitializeImageList();
     InitializeModuleErrors();
 }