Skip to content

Commit 731e201

Browse files
V1.1.18.0 Updates
- Added AZ/ALT motor status display to main screen. - Fixed a bug related to window positioning when ensuring they always open on screen.
1 parent c1716ae commit 731e201

File tree

5 files changed

+38
-6
lines changed

5 files changed

+38
-6
lines changed

OATControl/MainWindow.xaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@
5656
</DataTrigger>
5757
</Style.Triggers>
5858
</Style>
59+
<Style x:Key="TextBlockStatusMinor" TargetType="TextBlock" >
60+
<Setter Property="FontSize" Value="12" />
61+
<Setter Property="FontWeight" Value="Bold" />
62+
<Setter Property="HorizontalAlignment" Value="Center" />
63+
<Setter Property="VerticalAlignment" Value="Center" />
64+
<Style.Triggers>
65+
<DataTrigger Binding="{Binding}" Value="True">
66+
<Setter Property="Foreground" Value="#FFB0B0B0" />
67+
</DataTrigger>
68+
</Style.Triggers>
69+
</Style>
5970
<Style x:Key="TextBlockStatus" TargetType="TextBlock" >
6071
<Setter Property="FontWeight" Value="Bold" />
6172
<Setter Property="FontSize" Value="18" />
@@ -621,6 +632,10 @@
621632
<ColumnDefinition Width="*" />
622633
</Grid.ColumnDefinitions>
623634

635+
<DockPanel Grid.Row="0" Grid.Column="0" Style="{StaticResource DockBlockStatus}" DataContext="{Binding IsSlewingAz}" Visibility="{Binding ScopeHasAZ, Converter={StaticResource CollapseIfFalse}}">
636+
<TextBlock Text="AZ" Style="{StaticResource TextBlockStatusMinor}" />
637+
</DockPanel>
638+
624639
<DockPanel Grid.Row="0" Grid.Column="2" Style="{StaticResource DockBlockStatus}" DataContext="{Binding IsSlewingNorth}">
625640
<TextBlock Text="N" Style="{StaticResource TextBlockStatus}" />
626641
</DockPanel>
@@ -633,6 +648,9 @@
633648
<DockPanel Grid.Row="1" Grid.Column="1" Style="{StaticResource DockBlockStatus}" DataContext="{Binding IsSlewingWest}">
634649
<TextBlock Text="W" Style="{StaticResource TextBlockStatus}" />
635650
</DockPanel>
651+
<DockPanel Grid.Row="2" Grid.Column="0" Style="{StaticResource DockBlockStatus}" DataContext="{Binding IsSlewingAlt}" Visibility="{Binding ScopeHasALT, Converter={StaticResource CollapseIfFalse}}">
652+
<TextBlock Text="ALT" Style="{StaticResource TextBlockStatusMinor}" />
653+
</DockPanel>
636654
<DockPanel Grid.Row="2" Grid.Column="2" Style="{StaticResource DockBlockStatus}" DataContext="{Binding IsSlewingSouth}">
637655
<TextBlock Text="S" Style="{StaticResource TextBlockStatus}" />
638656
</DockPanel>

OATControl/OATControl Setup.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "OATControl"
5-
#define MyAppVersion "1.1.17.0"
5+
#define MyAppVersion "1.1.18.0"
66
#define MyAppPublisher "OpenAstroTech"
77
#define MyAppURL "https://wiki.openastrotech.com/"
88
#define MyAppExeName "OATControl.exe"

OATControl/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.1.17.0")]
55-
[assembly: AssemblyFileVersion("1.1.17.0")]
54+
[assembly: AssemblyVersion("1.1.18.0")]
55+
[assembly: AssemblyFileVersion("1.1.18.0")]

OATControl/Readme.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
Revision History
22
----------------
33

4+
OATControl V1.1.18.0 9 Jul 2025
5+
- Added AZ/ALT motor status display to main screen.
6+
- Fixed a bug related to window positioning when ensuring they always open
7+
on screen.
8+
9+
OATControl V1.1.17.0 8 Jul 2025
10+
- Added display of NINA and SharpCap monitoring status on main screen.
11+
- Added code to ensure that no windows ever open entirely offscreen.
12+
- Increased required SharpCap successful solves before adjustment to 4.
13+
414
OATControl V1.1.16.0 4 Jul 2025
5-
- Added support for SharCap 4.x Polar Alignment.
15+
- Added support for SharpCap 4.x Polar Alignment.
616
- Moved AutoPA options to its own category on App Settings.
717

818
OATControl V1.1.15.0 2 Jul 2025

OATControl/ViewModels/AppSettings.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public DefaultValueAttribute(string val)
4545
private string _settingsLocation;
4646

4747
private List<SlewPoint> _slewPoints;
48-
4948
AppSettings()
5049
{
5150
var entry = Assembly.GetExecutingAssembly().GetName().Version;
@@ -156,7 +155,7 @@ public static void EnsureWindowIsVisible(ref Rect windowRect, int titleBarHeight
156155
if (windowRect.Top < virtualScreen.Top)
157156
windowRect.Y = virtualScreen.Top;
158157
}
159-
}
158+
}
160159

161160
private static double Clamp(double value, double min, double max)
162161
{
@@ -217,6 +216,11 @@ private string this[string key]
217216
{
218217
get
219218
{
219+
if (key == null)
220+
{
221+
return null;
222+
}
223+
220224
if (_dict.TryGetValue(key, out string val))
221225
{
222226
return val;

0 commit comments

Comments
 (0)