From c3954623835df54346b25479ec2e7bd0462e47e6 Mon Sep 17 00:00:00 2001 From: Adonais Romero Gonzalez Date: Mon, 29 Jan 2024 14:23:14 -0800 Subject: Remove WinHEC 2017 samples --- .../cpp/Scenario1_MeteringData.xaml.cpp | 47 ---------------------- 1 file changed, 47 deletions(-) delete mode 100644 general/WinHEC 2017 Lab/Toaster Support App/App/CustomCapability/cpp/Scenario1_MeteringData.xaml.cpp (limited to 'general/WinHEC 2017 Lab/Toaster Support App/App/CustomCapability/cpp/Scenario1_MeteringData.xaml.cpp') diff --git a/general/WinHEC 2017 Lab/Toaster Support App/App/CustomCapability/cpp/Scenario1_MeteringData.xaml.cpp b/general/WinHEC 2017 Lab/Toaster Support App/App/CustomCapability/cpp/Scenario1_MeteringData.xaml.cpp deleted file mode 100644 index 3a9e1f48..00000000 --- a/general/WinHEC 2017 Lab/Toaster Support App/App/CustomCapability/cpp/Scenario1_MeteringData.xaml.cpp +++ /dev/null @@ -1,47 +0,0 @@ -//********************************************************* -// -// Copyright (c) Microsoft. All rights reserved. -// This code is licensed under the MIT License (MIT). -// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF -// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY -// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR -// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. -// -//********************************************************* - -#include "pch.h" -#include "Scenario1_MeteringData.xaml.h" - -using namespace SDKTemplate; - -using namespace Platform; -using namespace Windows::Foundation; -using namespace Windows::Foundation::Collections; -using namespace Windows::UI::Xaml; -using namespace Windows::UI::Xaml::Controls::Primitives; - -MeteringData::MeteringData() -{ - InitializeComponent(); - ViewModel = ref new ServiceViewModel(); -} - -void SDKTemplate::MeteringData::button_Click_StartMetering(Object^ sender, RoutedEventArgs^ e) -{ - ViewModel->StartMetering((int)SamplePeriodSlider->Value); -} - -void SDKTemplate::MeteringData::button_Click_StopMetering(Object^ sender, RoutedEventArgs^ e) -{ - ViewModel->StopMetering(); -} - -void SDKTemplate::MeteringData::slider_ValueChanged(Object^ sender, RangeBaseValueChangedEventArgs^ e) -{ - // Ignore slider value changes prior to ViewModel initialization. - if (ViewModel != nullptr) - { - // Update the sample period in response to slider change. - ViewModel->SetSamplePeriod((int)SamplePeriodSlider->Value); - } -} -- cgit v1.3.1