697eaab19a
- Aggiunta funzionalità di invio della licenza via e-mail e relativo pulsante in SearchLicencePage - Sistemato DatePickerYears per Product/OptionDeadline in New/UpdateLicencePage - I 2 bottoni di DatePickerYears settano la deadline al 31/01 dell'anno successivo di quello corrente o al 31/01/2099 (licenza perpetua) - Aggiunta possibilità di scaricare su disco la licenza dal DB, generata col testo presente in LicFile
51 lines
2.2 KiB
XML
51 lines
2.2 KiB
XML
<UserControl x:Class="DatePickerYears"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
x:Name="parent"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid DataContext="{Binding ElementName=parent}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<DatePicker Name="CustomDP"
|
|
SelectedDate="{Binding SelectedDate, ElementName=parent, Mode=TwoWay}"
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
SelectedDateChanged="CustomDP_SelectedDateChanged"
|
|
Height="30"
|
|
Width="170"/>
|
|
<!--SelectedDate="{Binding OptionDeadline}"-->
|
|
<!--SelectedDate="{Binding Path=CustomSelectedDate}"-->
|
|
<!--SelectedDate="{Binding SelectedDateUC, RelativeSource={RelativeSource AncestorType=local:TestUC}, Mode=TwoWay}"-->
|
|
<!--SelectedDate="{Binding SelectedDateUC, RelativeSource={RelativeSource AncestorType=DatePicker}, Mode=TwoWay}"-->
|
|
<!--SelectedDate="{Binding SelectedDate, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"-->
|
|
|
|
<Button Name="Perpetual"
|
|
Content="Year=2099"
|
|
HorizontalAlignment="Stretch"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
Height="25"/>
|
|
|
|
<Button Name="Plus1Y"
|
|
Content="+1 Year"
|
|
HorizontalAlignment="Stretch"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
Height="25"/>
|
|
</Grid>
|
|
</UserControl>
|