2021-10-25 21:40:19 +08:00
|
|
|
#pragma once
|
|
|
|
#include "PatternSnippet.g.h"
|
|
|
|
|
2022-05-11 22:38:12 +08:00
|
|
|
namespace winrt::PowerRenameUI::implementation
|
2021-10-25 21:40:19 +08:00
|
|
|
{
|
|
|
|
struct PatternSnippet : PatternSnippetT<PatternSnippet>
|
|
|
|
{
|
|
|
|
PatternSnippet() = delete;
|
|
|
|
|
|
|
|
PatternSnippet(hstring const& code, hstring const& description);
|
|
|
|
hstring Code();
|
|
|
|
void Code(hstring const& value);
|
|
|
|
hstring Description();
|
|
|
|
void Description(hstring const& value);
|
2022-05-11 22:38:12 +08:00
|
|
|
winrt::event_token PropertyChanged(winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventHandler const& handler);
|
2021-10-25 21:40:19 +08:00
|
|
|
void PropertyChanged(winrt::event_token const& token) noexcept;
|
|
|
|
|
|
|
|
private:
|
|
|
|
winrt::hstring m_code;
|
|
|
|
winrt::hstring m_description;
|
2022-05-11 22:38:12 +08:00
|
|
|
winrt::event<Microsoft::UI::Xaml::Data::PropertyChangedEventHandler> m_propertyChanged;
|
2021-10-25 21:40:19 +08:00
|
|
|
};
|
|
|
|
}
|
2022-05-11 22:38:12 +08:00
|
|
|
namespace winrt::PowerRenameUI::factory_implementation
|
2021-10-25 21:40:19 +08:00
|
|
|
{
|
|
|
|
struct PatternSnippet : PatternSnippetT<PatternSnippet, implementation::PatternSnippet>
|
|
|
|
{
|
|
|
|
};
|
|
|
|
}
|