1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <wpf:ThemableWindow x:Class="PRSServer.Forms.DatabaseLicense.LicenseRenewalForm"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:license="clr-namespace:PRSServer.Forms.DatabaseLicense"
- xmlns:dynamicgrid="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
- xmlns:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
- mc:Ignorable="d"
- Title="License Renewal Form" Height="800" Width="600" WindowStartupLocation="CenterScreen"
- Loaded="Window_Loaded" x:Name="Window">
- <Grid Margin="5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Label Content="Last License Renewal Date" Grid.Row="0" Grid.Column="0" Margin="5" />
- <dynamicgrid:DateEditorControl x:Name="LastRenewal" ColumnName="LastRenewal" Grid.Row="0" Grid.Column="1"
- IsEnabled="False" TodayVisible="false" Margin="5" HorizontalAlignment="Stretch"
- MaxWidth="Infinity" />
- <Label Content="Current License Expiry Date" Grid.Row="1" Grid.Column="0" Margin="5" />
- <dynamicgrid:DateEditorControl x:Name="CurrentExpiry" ColumnName="CurrentExpiry" Grid.Row="1" Grid.Column="1"
- IsEnabled="False" TodayVisible="false" Margin="5" HorizontalAlignment="Stretch"
- MaxWidth="Infinity" />
- <Border Margin="5" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
- <license:LicenseTrackingItemGrid x:Name="Modules" />
- </Border>
- <Label Content="Renewal Period" FontWeight="Bold" Grid.Row="3" Grid.Column="0" Margin="5" />
- <dynamicgrid:LookupEditorControl x:Name="RenewalPeriodEditor" ColumnName="RenewalPeriod" Grid.Row="3" Grid.Column="1"
- Margin="5" OnEditorValueChanged="RenewalPeriod_OnEditorValueChanged"
- HorizontalAlignment="Stretch" MaxWidth="Infinity" />
- <Label Content="New License Expiry Date" FontWeight="Bold" Grid.Row="4" Grid.Column="0" Margin="5" />
- <dynamicgrid:DateEditorControl x:Name="NewExpiry" ColumnName="NewExpiry" Grid.Row="4" Grid.Column="1"
- TodayVisible="false" Margin="5" HorizontalAlignment="Stretch"
- MaxWidth="Infinity" />
- <Label Content="Gross License Fee (Ex GST)" Grid.Row="5" Grid.Column="0" Margin="5" />
- <dynamicgrid:CurrencyEditorControl x:Name="GrossLicenseFee" Grid.Row="5" Grid.Column="1" IsEnabled="False"
- Margin="5" ColumnName="GrossLicenseFee" HorizontalAlignment="Stretch"
- MaxWidth="Infinity" />
- <Label x:Name="DiscountLabel" Content="Less Discount (Ex GST)" FontWeight="Bold" Grid.Row="6" Grid.Column="0"
- Margin="5" />
- <dynamicgrid:DoubleEditorControl x:Name="DiscountEditor" Grid.Row="6" Grid.Column="1" Margin="5"
- ColumnName="Discount" HorizontalAlignment="Stretch" MaxWidth="Infinity" />
- <Label Content="Nett License Fee (Ex GST)" Grid.Row="7" Grid.Column="0" Margin="5" />
- <dynamicgrid:CurrencyEditorControl x:Name="NettLicenseFee" Grid.Row="7" Grid.Column="1" IsEnabled="False"
- Margin="5" ColumnName="NettLicenseFee" HorizontalAlignment="Stretch"
- MaxWidth="Infinity" />
-
- <DockPanel Grid.Row="8" Grid.Column="0">
- <Button x:Name="Help" Margin="5" Height="30" Width="30"/>
- <Button x:Name="EnterKey" DockPanel.Dock="Left" Padding="10,0" Height="30" Margin="5" Content="Manual License"
- Click="EnterKey_Click" ToolTipService.ShowOnDisabled="True">
- <Button.ContextMenu>
- <ContextMenu>
- <MenuItem Header="Create Request File" Click="CreateManualRequest"/>
- <MenuItem Header="Load License File" Click="LoadManualResponse"/>
- </ContextMenu>
- </Button.ContextMenu>
- </Button>
-
- <Label x:Name="RenewalAvailableLabel" Content="" DockPanel.Dock="Left"
- VerticalAlignment="Center" HorizontalAlignment="Center"
- VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
- </DockPanel>
-
- <Button x:Name="PayWithStripe" Grid.Row="8" Grid.Column="1" Height="30" Margin="5" Content="Pay Now"
- IsEnabled="False"
- Click="PayNowClick" ToolTipService.ShowOnDisabled="True">
- <Button.ToolTip>
- <ToolTip x:Name="PayTooltip">
- <Label Content="Loading..."/>
- </ToolTip>
- </Button.ToolTip>
- </Button>
-
- </Grid>
- </wpf:ThemableWindow>
|