MainPage.xaml.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // MainPage.xaml.h
  3. // MainPage 类的声明。
  4. //
  5. #pragma once
  6. #include "MainPage.g.h"
  7. namespace SDLPal
  8. {
  9. /// <summary>
  10. /// 可用于自身或导航至 Frame 内部的空白页。
  11. /// </summary>
  12. public ref class MainPage sealed
  13. {
  14. public:
  15. MainPage();
  16. #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
  17. void SetPath(Windows::Storage::StorageFolder^ folder);
  18. void SetFile(Windows::Storage::StorageFile^ file);
  19. #endif
  20. protected:
  21. void LoadControlContents();
  22. void SaveControlContents();
  23. private:
  24. void CloseUICommandHandler(Windows::UI::Popups::IUICommand^ command);
  25. void btnBrowse_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  26. void tsIsDOS_Toggled(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  27. void cbBGM_SelectionChanged(Platform::Object^ sender, Windows::UI::Xaml::Controls::SelectionChangedEventArgs^ e);
  28. void btnReset_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  29. void btnFinish_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  30. void btnBrowseFile_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  31. void btnClearFile_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  32. };
  33. }