MCPcopy Create free account
hub / github.com/M2Team/NanaBox / PauseVirtualMachineButtonClick

Method PauseVirtualMachineButtonClick

NanaBox/MainWindowControl.cpp:108–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 void MainWindowControl::PauseVirtualMachineButtonClick(
109 winrt::IInspectable const& sender,
110 winrt::RoutedEventArgs const& e)
111 {
112 UNREFERENCED_PARAMETER(e);
113
114 ::PostMessageW(
115 this->m_WindowHandle,
116 WM_COMMAND,
117 (winrt::unbox_value<bool>(
118 sender.as<winrt::AppBarToggleButton>().IsChecked())
119 ? MAKEWPARAM(
120 NanaBox::MainWindowCommands::PauseVirtualMachine,
121 BN_CLICKED)
122 : MAKEWPARAM(
123 NanaBox::MainWindowCommands::ResumeVirtualMachine,
124 BN_CLICKED)),
125 0);
126 }
127
128 void MainWindowControl::RestartVirtualMachineButtonClick(
129 winrt::IInspectable const& sender,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected