v1.10 — Activation with key dialog, auto-refresh, Access restriction, fixes
- Product key dialog: Fluent overlay with 5-field input + paste support
- Activate button on each license card asks for key first (/inpkey + /act)
- Auto-refresh lists after removal/activation on all pages
- Access checkbox disabled for Standard and Home & Business editions
- MSI uninstall: only accept {GUID} product codes (fix msiexec help popup)
- Window height properly resets when Details expander is collapsed
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
69
Pages/ProductKeyDialog.xaml
Normal file
69
Pages/ProductKeyDialog.xaml
Normal file
@@ -0,0 +1,69 @@
|
||||
<UserControl x:Class="InstaSoftOfficeTool.Pages.ProductKeyDialog"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Visibility="Collapsed">
|
||||
|
||||
<Grid>
|
||||
<Border Background="#66000000" MouseDown="Backdrop_MouseDown"/>
|
||||
|
||||
<Border Background="{StaticResource CardBrush}" CornerRadius="12"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
MinWidth="480" Padding="28,24">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect ShadowDepth="8" BlurRadius="32" Opacity="0.2" Color="Black"/>
|
||||
</Border.Effect>
|
||||
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Margin="0,0,0,8">
|
||||
<TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="22"
|
||||
Foreground="{StaticResource AccentBrush}"
|
||||
VerticalAlignment="Center" Margin="0,0,12,0"/>
|
||||
<TextBlock Text="Termékkulcs megadása" FontSize="18" FontWeight="SemiBold"
|
||||
VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Text="Adja meg a 25 karakteres termékkulcsot az aktiváláshoz."
|
||||
FontSize="13" Foreground="{StaticResource TextSecondaryBrush}"
|
||||
Margin="0,0,0,16"/>
|
||||
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,20">
|
||||
<TextBox x:Name="DKey1" Style="{StaticResource FluentTextBox}"
|
||||
Width="76" MaxLength="5" CharacterCasing="Upper"
|
||||
FontFamily="Consolas" FontSize="15" TextAlignment="Center"
|
||||
TextChanged="KeyBox_TextChanged"/>
|
||||
<TextBlock Text="-" FontSize="18" VerticalAlignment="Center" Margin="4,0"
|
||||
Foreground="{StaticResource TextSecondaryBrush}"/>
|
||||
<TextBox x:Name="DKey2" Style="{StaticResource FluentTextBox}"
|
||||
Width="76" MaxLength="5" CharacterCasing="Upper"
|
||||
FontFamily="Consolas" FontSize="15" TextAlignment="Center"
|
||||
TextChanged="KeyBox_TextChanged"/>
|
||||
<TextBlock Text="-" FontSize="18" VerticalAlignment="Center" Margin="4,0"
|
||||
Foreground="{StaticResource TextSecondaryBrush}"/>
|
||||
<TextBox x:Name="DKey3" Style="{StaticResource FluentTextBox}"
|
||||
Width="76" MaxLength="5" CharacterCasing="Upper"
|
||||
FontFamily="Consolas" FontSize="15" TextAlignment="Center"
|
||||
TextChanged="KeyBox_TextChanged"/>
|
||||
<TextBlock Text="-" FontSize="18" VerticalAlignment="Center" Margin="4,0"
|
||||
Foreground="{StaticResource TextSecondaryBrush}"/>
|
||||
<TextBox x:Name="DKey4" Style="{StaticResource FluentTextBox}"
|
||||
Width="76" MaxLength="5" CharacterCasing="Upper"
|
||||
FontFamily="Consolas" FontSize="15" TextAlignment="Center"
|
||||
TextChanged="KeyBox_TextChanged"/>
|
||||
<TextBlock Text="-" FontSize="18" VerticalAlignment="Center" Margin="4,0"
|
||||
Foreground="{StaticResource TextSecondaryBrush}"/>
|
||||
<TextBox x:Name="DKey5" Style="{StaticResource FluentTextBox}"
|
||||
Width="76" MaxLength="5" CharacterCasing="Upper"
|
||||
FontFamily="Consolas" FontSize="15" TextAlignment="Center"
|
||||
TextChanged="KeyBox_TextChanged"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
|
||||
<Button Content="Mégse" Style="{StaticResource SecondaryButton}"
|
||||
Click="BtnCancel_Click" Margin="0,0,8,0"/>
|
||||
<Button x:Name="BtnOk" Content="Aktiválás" Style="{StaticResource PrimaryButton}"
|
||||
Click="BtnOk_Click" IsEnabled="False"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user