The dialog now carries N1MM's fields in N1MM's order, with the labels to the left of the boxes and the tip text at the top right. New fields in StoredStation: the address, the licence class, the position, the radio, the antenna and the email address. The grid square and the position fill each other in, as they do in N1MM. Which box has focus decides the direction, because TextChanged arrives too late to tell a typed edit from a programmed one. The fields N1MM's form does not have are gone from it. Continent and the country prefix are looked up from the callsign after Ok; the rest keep the value they had. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
124 lines
5.3 KiB
XML
124 lines
5.3 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="Nonemm.App.Dialogs.StationDialog"
|
|
Title="Edit Station Information" Width="545" SizeToContent="Height"
|
|
WindowStartupLocation="CenterOwner" CanResize="False">
|
|
<Window.Styles>
|
|
<Style Selector="TextBlock.label">
|
|
<Setter Property="FontSize" Value="11" />
|
|
<Setter Property="HorizontalAlignment" Value="Right" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="Margin" Value="6,0,6,0" />
|
|
</Style>
|
|
<Style Selector="TextBlock.first">
|
|
<Setter Property="Width" Value="95" />
|
|
<Setter Property="TextAlignment" Value="Right" />
|
|
</Style>
|
|
<Style Selector="TextBox">
|
|
<Setter Property="FontSize" Value="11" />
|
|
<Setter Property="MinHeight" Value="22" />
|
|
<Setter Property="Padding" Value="4,1" />
|
|
</Style>
|
|
<Style Selector="ComboBox">
|
|
<Setter Property="FontSize" Value="11" />
|
|
<Setter Property="MinHeight" Value="22" />
|
|
<Setter Property="Padding" Value="4,1" />
|
|
</Style>
|
|
<Style Selector="StackPanel.row">
|
|
<Setter Property="Orientation" Value="Horizontal" />
|
|
<Setter Property="Margin" Value="0,0,0,4" />
|
|
</Style>
|
|
</Window.Styles>
|
|
<StackPanel Margin="10">
|
|
<Grid ColumnDefinitions="Auto,*">
|
|
<StackPanel>
|
|
<StackPanel Classes="row">
|
|
<TextBlock Classes="label first" Text="Call" />
|
|
<TextBox Name="CallsignBox" Width="190" />
|
|
</StackPanel>
|
|
<StackPanel Classes="row">
|
|
<TextBlock Classes="label first" Text="Name" />
|
|
<TextBox Name="NameBox" Width="190" />
|
|
</StackPanel>
|
|
<StackPanel Classes="row">
|
|
<TextBlock Classes="label first" Text="Address" />
|
|
<TextBox Name="AddressBox" Width="190" />
|
|
</StackPanel>
|
|
<StackPanel Classes="row">
|
|
<TextBlock Classes="label first" Text="Address" />
|
|
<TextBox Name="Address2Box" Width="190" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<TextBlock Grid.Column="1" FontSize="11" TextWrapping="Wrap" Margin="12,2,0,0"
|
|
Foreground="#0000C0"
|
|
Text="Tip: You need to fill out this form or the program will not perform properly... Also, make sure your computer date and time are set to the LOCAL date and time zone for your location." />
|
|
</Grid>
|
|
|
|
<StackPanel Classes="row">
|
|
<TextBlock Classes="label first" Text="City" />
|
|
<TextBox Name="CityBox" Width="105" />
|
|
<TextBlock Classes="label" Text="State" />
|
|
<TextBox Name="StateBox" Width="45" />
|
|
<TextBlock Classes="label" Text="Zip" />
|
|
<TextBox Name="ZipBox" Width="140" />
|
|
</StackPanel>
|
|
<StackPanel Classes="row">
|
|
<TextBlock Classes="label first" Text="Country" />
|
|
<TextBox Name="CountryBox" Width="130" />
|
|
</StackPanel>
|
|
<StackPanel Classes="row">
|
|
<TextBlock Classes="label first" Text="Grid Square" />
|
|
<TextBox Name="GridBox" Width="105" />
|
|
<TextBlock Classes="label" Text="CQ" />
|
|
<TextBox Name="CqZoneBox" Width="60" />
|
|
<TextBlock Classes="label" Text="ITU" />
|
|
<TextBox Name="ItuZoneBox" Width="90" />
|
|
</StackPanel>
|
|
<StackPanel Classes="row">
|
|
<TextBlock Classes="label first" Text="License" />
|
|
<TextBox Name="LicenseBox" Width="60" />
|
|
<TextBlock Classes="label" Text="Latitude" />
|
|
<TextBox Name="LatitudeBox" Width="55" />
|
|
<ComboBox Name="LatitudeSignBox" Width="55" Margin="4,0,0,0" />
|
|
<TextBlock Classes="label" Text="Longitude" />
|
|
<TextBox Name="LongitudeBox" Width="60" />
|
|
<ComboBox Name="LongitudeSignBox" Width="55" Margin="4,0,0,0" />
|
|
</StackPanel>
|
|
<StackPanel Classes="row" Margin="0,6,0,4">
|
|
<TextBlock Classes="label first" Text="Station" />
|
|
<TextBox Name="RigBox" Width="175" />
|
|
<TextBlock Classes="label" Text="Power" />
|
|
<TextBox Name="PowerBox" Width="80" />
|
|
</StackPanel>
|
|
<StackPanel Classes="row">
|
|
<TextBlock Classes="label first" Text="Antenna" />
|
|
<TextBox Name="AntennaBox" Width="120" />
|
|
<TextBlock Classes="label" Text="Ant. Height" />
|
|
<TextBox Name="AntennaHeightBox" Width="60" />
|
|
<TextBlock Classes="label" Text="a.s.l." />
|
|
<TextBox Name="AboveSeaLevelBox" Width="70" />
|
|
</StackPanel>
|
|
<StackPanel Classes="row" Margin="0,6,0,4">
|
|
<TextBlock Classes="label first" Text="ARRL Section" />
|
|
<TextBox Name="SectionBox" Width="100" />
|
|
</StackPanel>
|
|
<StackPanel Classes="row">
|
|
<TextBlock Classes="label first" Text="Rover QTH" />
|
|
<TextBox Name="RoverQthBox" Width="100" />
|
|
</StackPanel>
|
|
<StackPanel Classes="row">
|
|
<TextBlock Classes="label first" Text="Club" />
|
|
<TextBox Name="ClubBox" Width="235" />
|
|
</StackPanel>
|
|
<StackPanel Classes="row">
|
|
<TextBlock Classes="label first" Text="Email address" />
|
|
<TextBox Name="EmailBox" Width="305" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="30" Margin="0,14,0,4">
|
|
<Button Content="Ok" Width="85" HorizontalContentAlignment="Center" Click="OnSave" IsDefault="True" />
|
|
<Button Content="Cancel" Width="85" HorizontalContentAlignment="Center" Click="OnCancel" IsCancel="True" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Window>
|