MainPage.xaml.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. void SetPath(Windows::Storage::StorageFolder^ folder);
  17. void Export(Windows::Storage::StorageFile^ file, Platform::String^ slot);
  18. void Import(Windows::Storage::StorageFile^ file, Platform::String^ slot);
  19. protected:
  20. void LoadControlContents();
  21. void SaveControlContents();
  22. void CheckSaveSlots();
  23. private:
  24. Windows::UI::Xaml::Controls::Button^ m_buttons[5];
  25. void CloseUICommandHandler(Windows::UI::Popups::IUICommand^ command);
  26. void btnBrowse_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  27. void btnDefault_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  28. void tsIsDOS_Toggled(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  29. void cbBGM_SelectionChanged(Platform::Object^ sender, Windows::UI::Xaml::Controls::SelectionChangedEventArgs^ e);
  30. void btnReset_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  31. void btnFinish_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  32. void btnImport_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  33. void btnExport_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
  34. };
  35. }