Before this change, the pchs for CalcViewModel and Calculator project referenced project headers. If those project headers (or any of their dependencies) were to change, then the pch would be recompiled, slowing local build times. By removing references to project headers, the pch will be compiled once and is resilient to changes in the project. Now that project headers are explicit about their dependencies, when there is a change to a project header only the translation units referencing the modified header will need to be rebuilt. - Manually tested by ensuring Calculator project builds locally. @Microsoft/calculator-team
28 lines
932 B
C++
28 lines
932 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#pragma once
|
|
|
|
#include "CalculatorButtonUser.h"
|
|
#include "Utils.h"
|
|
|
|
namespace CalculatorApp
|
|
{
|
|
namespace Common
|
|
{
|
|
public ref class CalculatorButtonPressedEventArgs sealed
|
|
{
|
|
public:
|
|
PROPERTY_R(Platform::String^, AuditoryFeedback);
|
|
PROPERTY_R(CalculatorApp::NumbersAndOperatorsEnum, Operation);
|
|
|
|
CalculatorButtonPressedEventArgs(
|
|
Platform::String^ feedback, CalculatorApp::NumbersAndOperatorsEnum operation) :
|
|
m_AuditoryFeedback(feedback), m_Operation(operation) {}
|
|
|
|
static CalculatorApp::NumbersAndOperatorsEnum GetOperationFromCommandParameter(_In_ Platform::Object^ commandParameter);
|
|
static Platform::String^ GetAuditoryFeedbackFromCommandParameter(_In_ Platform::Object^ commandParameter);
|
|
};
|
|
}
|
|
}
|