| 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, |
nothing calls this directly
no outgoing calls
no test coverage detected