Skip to content

Commit 00f6c94

Browse files
Added device title to setup pages
1 parent 1f51db2 commit 00f6c94

File tree

9 files changed

+115
-0
lines changed

9 files changed

+115
-0
lines changed

ASCOM.Alpaca.Simulators/Pages/CameraSetup.razor

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@
1212
}
1313
else
1414
{
15+
if (InstanceID == 0)
16+
{
17+
<h3>
18+
Camera Setup
19+
</h3>
20+
}
21+
else
22+
{
23+
<h3>
24+
Camera @InstanceID Setup
25+
</h3>
26+
}
27+
1528
@if (Device.Connected)
1629
{
1730
<fieldset>

ASCOM.Alpaca.Simulators/Pages/CoverCalibratorSetup.razor

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212
}
1313
else
1414
{
15+
if (InstanceID == 0)
16+
{
17+
<h3>
18+
Cover Calibrator Setup
19+
</h3>
20+
}
21+
else
22+
{
23+
<h3>
24+
Cover Calibrator @InstanceID Setup
25+
</h3>
26+
}
1527
@if (Device.Connected)
1628
{
1729
<fieldset>

ASCOM.Alpaca.Simulators/Pages/DomeSetup.razor

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@
1010
}
1111
else
1212
{
13+
if (InstanceID == 0)
14+
{
15+
<h3>
16+
Dome Setup
17+
</h3>
18+
}
19+
else
20+
{
21+
<h3>
22+
Dome @InstanceID Setup
23+
</h3>
24+
}
1325
@if (Device.Connected)
1426
{
1527
<fieldset>

ASCOM.Alpaca.Simulators/Pages/FilterWheelSetup.razor

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010
}
1111
else
1212
{
13+
if (InstanceID == 0)
14+
{
15+
<h3>
16+
Filter Wheel Setup
17+
</h3>
18+
}
19+
else
20+
{
21+
<h3>
22+
Filter Wheel @InstanceID Setup
23+
</h3>
24+
}
25+
1326
@if (Device.Connected)
1427
{
1528
<fieldset>

ASCOM.Alpaca.Simulators/Pages/FocuserSetup.razor

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010
}
1111
else
1212
{
13+
if (InstanceID == 0)
14+
{
15+
<h3>
16+
Focuser Setup
17+
</h3>
18+
}
19+
else
20+
{
21+
<h3>
22+
Focuser @InstanceID Setup
23+
</h3>
24+
}
25+
1326
@if (Device.IsConnected)
1427
{
1528
<fieldset>

ASCOM.Alpaca.Simulators/Pages/ObservingConditionsSetup.razor

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010
}
1111
else
1212
{
13+
if (InstanceID == 0)
14+
{
15+
<h3>
16+
Observing Conditions Setup
17+
</h3>
18+
}
19+
else
20+
{
21+
<h3>
22+
Observing Conditions @InstanceID Setup
23+
</h3>
24+
}
25+
1326
@if (Device.Connected)
1427
{
1528
<fieldset>

ASCOM.Alpaca.Simulators/Pages/RotatorSetup.razor

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010
}
1111
else
1212
{
13+
if (InstanceID == 0)
14+
{
15+
<h3>
16+
Rotator Setup
17+
</h3>
18+
}
19+
else
20+
{
21+
<h3>
22+
Rotator @InstanceID Setup
23+
</h3>
24+
}
25+
1326
@if (Device.Connected)
1427
{
1528
<fieldset>

ASCOM.Alpaca.Simulators/Pages/SwitchSetup.razor

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010
}
1111
else
1212
{
13+
if (InstanceID == 0)
14+
{
15+
<h3>
16+
Switch Setup
17+
</h3>
18+
}
19+
else
20+
{
21+
<h3>
22+
Switch @InstanceID Setup
23+
</h3>
24+
}
25+
1326
@if (Device.Connected)
1427
{
1528
<fieldset>

ASCOM.Alpaca.Simulators/Pages/TelescopeSetup.razor

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@
1111
}
1212
else
1313
{
14+
if (InstanceID == 0)
15+
{
16+
<h3>
17+
Telescope Setup
18+
</h3>
19+
}
20+
else
21+
{
22+
<h3>
23+
Telescope @InstanceID Setup
24+
</h3>
25+
}
26+
1427
@if (Device.Connected)
1528
{
1629
<fieldset>

0 commit comments

Comments
 (0)