public void InitializeData(DVDPlayerDeviceDesign device) { base.InitializeData(); CollapsedRGBOption = true; /////инициализация параметров по девайсу _DVDType = device.InterfaceType; UpdateView(true, device, device.IsPlayerOn, "00:00:00", -1, -1, DVDState.NO_CD); switch (device.InterfaceType) { case InterfaceTypeEnum.IR: InitIR(device); //SetControlPlayerTimerEnable(false, 1); break; case InterfaceTypeEnum.RS232: InitRS232(device); //SetControlPlayerTimerEnable(true, 1000); break; } cbaChapter.Enabled = itbChapter.Enabled = (device.MediumType == MediumTypeEnum.DVD ? true : false); /////////////////////////////////// }
public InterfaceTypeRequiredAttribute(InterfaceTypeEnum type) { InterfaceType = type; }
public void SetInterfaceType(InterfaceTypeEnum interfaceTypeEnum) { this.InterfaceType = (int)interfaceTypeEnum; }