#ifndef VCZH_PRESENTATION_CONTROLS_GUIDATETIMECONTROLS
#define VCZH_PRESENTATION_CONTROLS_GUIDATETIMECONTROLS
#include "ListControlPackage/GuiComboControls.h"
namespace
{
namespace
{
namespace
{
class
:
public
,
protected
compositions
::
,
public
<
>
{
GUI_SPECIFY_CONTROL_TEMPLATE_TYPE(DatePickerTemplate, GuiControl)
public
:
using
=
templates
::
;
private
:
templates
::
*
=
nullptr
;
void
BeforeControlTemplateUninstalled_
();
void
AfterControlTemplateInstalled_
(
bool
);
protected
:
void
BeforeControlTemplateUninstalled
()
override
{
BeforeControlTemplateUninstalled_
();
::
BeforeControlTemplateUninstalled
(); }
void
AfterControlTemplateInstalled
(
bool
)
override
{
::
AfterControlTemplateInstalled
(
);
AfterControlTemplateInstalled_
(
); }
void
CheckAndStoreControlTemplate
(
templates
::
*
)
override
{
auto
=
dynamic_cast
<
templates
::
*>(
);
do
{
if
(!(
ct
))
throw
(
L"The assigned control template is not vl::presentation::templates::Gui"
L"DatePickerTemplate"
L"."
);}
while
(
0
);
=
ct
;
::
CheckAndStoreControlTemplate
(
); }
public
:
templates
::
*
TypedControlTemplateObject
(
bool
) {
if
(
) {
EnsureControlTemplateExists
(); }
return
; }
private
:
protected
:
class
:
public
,
public
IDatePickerCommandExecutor
{
protected
:
*
;
public
:
(
*
);
();
void
()
override
;
void
()
override
;
void
()
override
;
};
<
>
;
;
;
;
compositions
::
*
=
nullptr
;
bool
=
false
;
void
();
bool
()
override
;
compositions
::
*
()
override
;
public
:
(
theme
::
,
bool
=
true
);
();
compositions
::
;
compositions
::
;
compositions
::
;
compositions
::
;
compositions
::
;
const
&
();
void
(
const
&
);
const WString& GetDateFormat();
void
(
const
&
);
const
&
();
void
(
const
&
);
void
(
const
&
)
override
;
};
class
:
public
,
public
<
>
{
GUI_SPECIFY_CONTROL_TEMPLATE_TYPE(DateComboBoxTemplate, GuiComboBoxBase)
public
:
using
=
templates
::
;
private
:
templates
::
*
=
nullptr
;
void
BeforeControlTemplateUninstalled_
();
void
AfterControlTemplateInstalled_
(
bool
);
protected
:
void
BeforeControlTemplateUninstalled
()
override
{
BeforeControlTemplateUninstalled_
();
::
BeforeControlTemplateUninstalled
(); }
void
AfterControlTemplateInstalled
(
bool
)
override
{
::
AfterControlTemplateInstalled
(
);
AfterControlTemplateInstalled_
(
); }
void
CheckAndStoreControlTemplate
(
templates
::
*
)
override
{
auto
=
dynamic_cast
<
templates
::
*>(
);
do
{
if
(!(
ct
))
throw
(
L"The assigned control template is not vl::presentation::templates::Gui"
L"DateComboBoxTemplate"
L"."
);}
while
(
0
);
=
ct
;
::
CheckAndStoreControlTemplate
(
); }
public
:
templates
::
*
TypedControlTemplateObject
(
bool
) {
if
(
) {
EnsureControlTemplateExists
(); }
return
; }
private
:
protected
:
*
;
;
void
();
void
();
void
(
compositions
::
* ,
compositions
::
& );
void
datePicker_DateLocaleChanged
(
compositions
::
*
,
compositions
::
&
);
void
(
compositions
::
*
,
compositions
::
&
);
void
(
compositions
::
*
,
compositions
::
&
);
public
:
(
theme
::
);
();
compositions
::
;
void
(
const
<
>&
)
override
;
const
&
();
void
(
const
&
);
*
();
};
}
}
}
#endif