calculator/src/CalcViewModel/MemoryItemViewModel.cpp
Howard Wolosky c13b8a099e Hello GitHub
2019-01-28 16:24:37 -08:00

34 lines
866 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "pch.h"
#include "MemoryItemViewModel.h"
#include "StandardCalculatorViewModel.h"
using namespace CalculatorApp;
using namespace CalculatorApp::Common;
using namespace CalculatorApp::Common::Automation;
using namespace CalculatorApp::ViewModel;
using namespace Platform;
using namespace std;
using namespace Windows::Foundation;
using namespace Windows::Storage;
using namespace Windows::Storage::Streams;
using namespace Windows::Security::Cryptography;
using namespace Windows::Foundation::Collections;
void MemoryItemViewModel::Clear()
{
m_calcVM->OnMemoryClear(Position);
};
void MemoryItemViewModel::MemoryAdd()
{
m_calcVM->OnMemoryAdd(Position);
};
void MemoryItemViewModel::MemorySubtract()
{
m_calcVM->OnMemorySubtract(Position);
};