Code inspections

This commit is contained in:
2019-09-29 19:38:56 +01:00
parent 013c2fd672
commit 4489a91eb7
5 changed files with 52 additions and 9 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ namespace ASCOM.Meade.net
private Guid _mClassId;
private readonly ArrayList _mInterfaceTypes;
private uint _mCookie;
private readonly string _mProgid;
//private readonly string _mProgid;
public ClassFactory(Type type)
{
@@ -122,7 +122,7 @@ namespace ASCOM.Meade.net
_mClassType = type;
//PWGS Get the ProgID from the MetaData
_mProgid = Marshal.GenerateProgIdForType(type);
//_mProgid = Marshal.GenerateProgIdForType(type);
_mClassId = Marshal.GenerateGuidForType(type); // Should be nailed down by [Guid(...)]
ClassContext = (uint)Clsctx.ClsctxLocalServer; // Default
Flags = (uint)Regcls.RegclsMultipleuse | // Default
+6
View File
@@ -18,6 +18,12 @@ namespace ASCOM.Meade.net
Text = $"{assemblyInfo.Product} Settings ({assemblyInfo.AssemblyVersion})";
}
public sealed override string Text
{
get { return base.Text; }
set { base.Text = value; }
}
private void cmdCancel_Click(object sender, EventArgs e) // Cancel button event handler
{
Close();