コード例 #1
0
		public CodeReaderDetailsViewModel(GKCodeReaderSettings codeReaderSettings)
		{
			Title = "Настройка кодонаборника";
			CodeReaderSettings = codeReaderSettings;
			SetGuardSettingsViewModel = new CodeReaderSettingsViewModel(codeReaderSettings.SetGuardSettings);
			ResetGuardSettingsViewModel = new CodeReaderSettingsViewModel(codeReaderSettings.ResetGuardSettings);
			ChangeGuardSettingsViewModel = new CodeReaderSettingsViewModel(codeReaderSettings.ChangeGuardSettings);
			AlarmSettingsViewModel = new CodeReaderSettingsViewModel(codeReaderSettings.AlarmSettings);
		}
コード例 #2
0
		public MPTCodeReaderDetailsViewModel(GKCodeReaderSettings codeReaderSettings, GKMPTDeviceType mptDeviceType)
		{
			Title = "Настройка кодонаборника";
			MPTDeviceType = mptDeviceType;
			CodeReaderSettings = codeReaderSettings;
			CodeReaderSettingsPart = codeReaderSettings.MPTSettings;
			switch (mptDeviceType)
			{
				case GKMPTDeviceType.HandAutomaticOn:
					CodeName = "Действие для постановки на автоматику";
					break;
				case GKMPTDeviceType.HandAutomaticOff:
					CodeName = "Действие для снятия с автоматики";
					break;
				case GKMPTDeviceType.HandStart:
					CodeName = "Действие для пуска";
					break;
				case GKMPTDeviceType.HandStop:
					CodeName = "Действие для останова";
					break;
			}

			CodeReaderSettingsViewModel = new CodeReaderSettingsViewModel(CodeReaderSettingsPart);
		}
コード例 #3
0
ファイル: GKDeviceGuardZone.cs プロジェクト: xbadcode/Rubezh
		public GKDeviceGuardZone()
		{
			GuardZone = new GKGuardZone();
			CodeReaderSettings = new GKCodeReaderSettings();
		}
コード例 #4
0
ファイル: GKGuardZoneDevice.cs プロジェクト: xbadcode/Rubezh
		public GKGuardZoneDevice()
		{
			CodeReaderSettings = new GKCodeReaderSettings();
			Device = new GKDevice();
		}
コード例 #5
0
ファイル: GKMPTDevice.cs プロジェクト: xbadcode/Rubezh
		public GKMPTDevice()
		{
			CodeReaderSettings = new GKCodeReaderSettings();
			MPTDeviceType = GKMPTDeviceType.Unknown;
		}