forked from microsoft/calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemoryItemViewModel.cpp
More file actions
33 lines (28 loc) · 866 Bytes
/
MemoryItemViewModel.cpp
File metadata and controls
33 lines (28 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 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);
};