calculator/src/Calculator/Views/CalculatorProgrammerDisplayPanel.xaml.h

38 lines
1.1 KiB
C
Raw Normal View History

2019-01-29 08:24:37 +08:00
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "Views/CalculatorProgrammerDisplayPanel.g.h"
#include "CalcViewModel/StandardCalculatorViewModel.h"
2019-01-29 08:24:37 +08:00
namespace CalculatorApp
{
[Windows::Foundation::Metadata::WebHostHidden] public ref class CalculatorProgrammerDisplayPanel sealed
2019-01-29 08:24:37 +08:00
{
public:
CalculatorProgrammerDisplayPanel();
COMMAND_FOR_METHOD(BitLengthButtonPressed, CalculatorProgrammerDisplayPanel::OnBitLengthButtonPressed);
property CalculatorApp::ViewModel::StandardCalculatorViewModel^ Model
{
CalculatorApp::ViewModel::StandardCalculatorViewModel^ get() {
return static_cast<CalculatorApp::ViewModel::StandardCalculatorViewModel^>(this->DataContext);
}
}
property bool IsErrorVisualState
{
2019-01-29 08:24:37 +08:00
bool get();
void set(bool value);
}
private:
void ShowBitFlip(Platform::Object ^ sender, Windows::UI::Xaml::RoutedEventArgs ^ e);
void OnBitLengthButtonPressed(Platform::Object ^ parameter);
2019-01-29 08:24:37 +08:00
bool m_isErrorVisualState;
};
}