2019-01-29 08:24:37 +08:00
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2019-03-08 06:33:49 +08:00
|
|
|
|
#include "Views/CalculatorProgrammerDisplayPanel.g.h"
|
|
|
|
|
#include "CalcViewModel/StandardCalculatorViewModel.h"
|
2019-01-29 08:24:37 +08:00
|
|
|
|
|
|
|
|
|
namespace CalculatorApp
|
|
|
|
|
{
|
2019-05-03 02:59:19 +08:00
|
|
|
|
[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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-03 02:59:19 +08:00
|
|
|
|
property bool IsErrorVisualState
|
|
|
|
|
{
|
2019-01-29 08:24:37 +08:00
|
|
|
|
bool get();
|
|
|
|
|
void set(bool value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private:
|
2019-05-03 02:59:19 +08:00
|
|
|
|
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;
|
|
|
|
|
};
|
|
|
|
|
}
|