Removed redundant qualifiers

This commit is contained in:
2019-07-19 13:12:22 +01:00
parent dfef48ff0c
commit 2ce8c4e123
9 changed files with 109 additions and 109 deletions
+13 -13
View File
@@ -21,7 +21,7 @@ namespace ASCOM.Meade.net
[Guid("288838d1-bbf9-4ce0-9ee1-86ecf38b45c9")]
[ClassInterface(ClassInterfaceType.None)]
[ComVisible(true)]
public class Rate : ASCOM.DeviceInterface.IRate
public class Rate : IRate
{
private double maximum = 0;
private double minimum = 0;
@@ -45,14 +45,14 @@ namespace ASCOM.Meade.net
public double Maximum
{
get { return this.maximum; }
set { this.maximum = value; }
get { return maximum; }
set { maximum = value; }
}
public double Minimum
{
get { return this.minimum; }
set { this.minimum = value; }
get { return minimum; }
set { minimum = value; }
}
#endregion
@@ -100,16 +100,16 @@ namespace ASCOM.Meade.net
// TODO Initialize this array with any Primary axis rates that your driver may provide
// Example: m_Rates = new Rate[] { new Rate(10.5, 30.2), new Rate(54.0, 43.6) }
//this.rates = new Rate[0];
this.rates = new Rate[] { new Rate(1, 1), new Rate(2, 2), new Rate(3, 3), new Rate(4, 4) };
rates = new Rate[] { new Rate(1, 1), new Rate(2, 2), new Rate(3, 3), new Rate(4, 4) };
break;
case TelescopeAxes.axisSecondary:
// TODO Initialize this array with any Secondary axis rates that your driver may provide
//this.rates = new Rate[0];
this.rates = new Rate[] { new Rate(1, 1), new Rate(2, 2), new Rate(3, 3), new Rate(4, 4) };
rates = new Rate[] { new Rate(1, 1), new Rate(2, 2), new Rate(3, 3), new Rate(4, 4) };
break;
case TelescopeAxes.axisTertiary:
// TODO Initialize this array with any Tertiary axis rates that your driver may provide
this.rates = new Rate[0];
rates = new Rate[0];
break;
}
}
@@ -118,7 +118,7 @@ namespace ASCOM.Meade.net
public int Count
{
get { return this.rates.Length; }
get { return rates.Length; }
}
public void Dispose()
@@ -133,7 +133,7 @@ namespace ASCOM.Meade.net
public IRate this[int index]
{
get { return this.rates[index - 1]; } // 1-based
get { return rates[index - 1]; } // 1-based
}
#endregion
@@ -176,7 +176,7 @@ namespace ASCOM.Meade.net
// the tracking rates supported by your telescope. The one value
// (tracking rate) that MUST be supported is driveSidereal!
//
this.trackingRates = new[] { DriveRates.driveSidereal, DriveRates.driveLunar };
trackingRates = new[] { DriveRates.driveSidereal, DriveRates.driveLunar };
// TODO Initialize this array with any additional tracking rates that your driver may provide
}
@@ -184,7 +184,7 @@ namespace ASCOM.Meade.net
public int Count
{
get { return this.trackingRates.Length; }
get { return trackingRates.Length; }
}
public IEnumerator GetEnumerator()
@@ -200,7 +200,7 @@ namespace ASCOM.Meade.net
public DriveRates this[int index]
{
get { return this.trackingRates[index - 1]; } // 1-based
get { return trackingRates[index - 1]; } // 1-based
}
#endregion