MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / PauseButton_Click

Method PauseButton_Click

FastCopy/CopyDialog.cpp:45–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44
45 void CopyDialog::PauseButton_Click(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::RoutedEventArgs const& e)
46 {
47 if (PauseIcon().Symbol() == winrt::Microsoft::UI::Xaml::Controls::Symbol::Pause)
48 {
49 ViewModel().Pause();
50 PauseIcon().Symbol(winrt::Microsoft::UI::Xaml::Controls::Symbol::Play);
51 ProgressBar().Color(winrt::Windows::UI::Colors::Yellow());
52 Taskbar::SetProgressState(Global::MainHwnd, Taskbar::ProgressState::Paused);
53 }
54 else
55 {
56 ViewModel().Start();
57 PauseIcon().Symbol(winrt::Microsoft::UI::Xaml::Controls::Symbol::Pause);
58 ProgressBar().Color(winrt::Windows::UI::Colors::Green());
59 Taskbar::SetProgressState(Global::MainHwnd, Taskbar::ProgressState::Normal);
60 }
61 }
62
63 CopyDialog::CopyDialog()
64 {

Callers

nothing calls this directly

Calls 4

SymbolMethod · 0.80
ColorMethod · 0.80
PauseMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected