Skip to content

Commit 19bfdee

Browse files
OATControl V0.9.9.14 - Updates
- Added Button to open logs folder. - Widened Connection dialog.
1 parent ed0bc4b commit 19bfdee

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

Software/OpenAstroTracker ASCOM/OATControl/DlgChooseOat.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
77
xmlns:local="clr-namespace:OATControl" xmlns:converters="clr-namespace:OATControl.Converters"
88
mc:Ignorable="d"
9-
Title="Connect to OpenAstroTracker" Height="500" Width="600" ResizeMode="NoResize" WindowStyle="ToolWindow" FontSize="16" FontWeight="Bold">
9+
Title="Connect to OpenAstroTracker" Height="500" Width="700" ResizeMode="NoResize" WindowStyle="ToolWindow" FontSize="16" FontWeight="Bold">
1010
<Controls:MetroWindow.Resources>
1111
<converters:BoolToVisibilityConverter x:Key="ShowOnTrue" Collapse="True" />
1212
<converters:BoolToVisibilityConverter x:Key="CollapseOnFalse" Collapse="True" />

Software/OpenAstroTracker ASCOM/OATControl/MainWindow.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
<Grid.RowDefinitions>
163163
<RowDefinition Height="Auto"/>
164164
<RowDefinition Height="*"/>
165+
<RowDefinition Height="Auto"/>
165166
</Grid.RowDefinitions>
166167
<Grid.ColumnDefinitions>
167168
<ColumnDefinition Width="*"/>
@@ -299,6 +300,7 @@
299300
</Border.BorderBrush>
300301
</Border>
301302

303+
<Button Grid.Row="7" Grid.Column="13" Grid.ColumnSpan="2" Content="Logs" Margin="20,10,6,10" Padding="0" Style="{StaticResource AccentedSquareButtonStyle}" Command="{Binding ShowLogFolderCommand}"/>
302304
</Grid>
303305

304306
<Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="1">
@@ -596,5 +598,6 @@
596598
<Button Grid.Row="7" Grid.Column="3" Style="{StaticResource ArrowStyle}" Content="{StaticResource IconArrowDown}" Command="{Binding ArrowCommand}" CommandParameter="HM-" />-->
597599

598600
</Grid>
601+
599602
</Grid>
600603
</Controls:MetroWindow>

Software/OpenAstroTracker ASCOM/OATControl/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
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("0.9.9.13")]
54+
[assembly: AssemblyVersion("0.9.9.14")]
5555
[assembly: AssemblyFileVersion("1.0.0.0")]

Software/OpenAstroTracker ASCOM/OATControl/ViewModels/MountVM.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public class MountVM : ViewModelBase
7777
DelegateCommand _parkCommand;
7878
DelegateCommand _driftAlignCommand;
7979
DelegateCommand _polarAlignCommand;
80+
DelegateCommand _showLogFolderCommand;
8081

8182
DispatcherTimer _timerStatus;
8283
DispatcherTimer _timerFineSlew;
@@ -125,6 +126,7 @@ public MountVM()
125126
_parkCommand = new DelegateCommand(async () => await OnPark(), () => MountConnected);
126127
_driftAlignCommand = new DelegateCommand(async dur => await OnRunDriftAlignment(int.Parse(dur.ToString())), () => MountConnected);
127128
_polarAlignCommand = new DelegateCommand(() => OnRunPolarAlignment(), () => MountConnected);
129+
_showLogFolderCommand = new DelegateCommand(() => OnShowLogFolder(), () => true);
128130

129131
_util = new Util();
130132
_transform = new ASCOM.Astrometry.Transform.Transform();
@@ -150,6 +152,12 @@ public MountVM()
150152
Log.WriteLine("Mount: Initialization of OATControl {0} complete...", this.Version);
151153
}
152154

155+
private void OnShowLogFolder()
156+
{
157+
ProcessStartInfo info = new ProcessStartInfo("explorer.exe", Path.GetDirectoryName(Log.Filename)) { UseShellExecute = true };
158+
Process.Start(info);
159+
}
160+
153161
private async Task OnSetHome()
154162
{
155163
Log.WriteLine("Mount: Setting Home...");
@@ -605,6 +613,7 @@ private void RequeryCommands()
605613
_parkCommand.Requery();
606614
_driftAlignCommand.Requery();
607615
_polarAlignCommand.Requery();
616+
_showLogFolderCommand.Requery();
608617

609618
OnPropertyChanged("ConnectCommandString");
610619
}
@@ -749,6 +758,7 @@ public void OnAdjustTarget(string command)
749758
public ICommand ParkCommand { get { return _parkCommand; } }
750759
public ICommand DriftAlignCommand { get { return _driftAlignCommand; } }
751760
public ICommand PolarAlignCommand { get { return _polarAlignCommand; } }
761+
public ICommand ShowLogFolderCommand { get { return _showLogFolderCommand; } }
752762

753763
/// <summary>
754764
/// Gets or sets the RAHour

0 commit comments

Comments
 (0)