Tidying up meade.net to read as meade generic
This commit is contained in:
Binary file not shown.
@@ -257,7 +257,7 @@ namespace ASCOM.Meade.net
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
MessageBox.Show("Failed to load served COM class assembly " + fi.Name + " - " + e.Message,
|
MessageBox.Show("Failed to load served COM class assembly " + fi.Name + " - " + e.Message,
|
||||||
"Meade.net", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
"Meade Generic", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -293,12 +293,12 @@ namespace ASCOM.Meade.net
|
|||||||
try { Process.Start(si); }
|
try { Process.Start(si); }
|
||||||
catch (System.ComponentModel.Win32Exception)
|
catch (System.ComponentModel.Win32Exception)
|
||||||
{
|
{
|
||||||
MessageBox.Show("The Meade.net was not " + (arg == "/register" ? "registered" : "unregistered") +
|
MessageBox.Show("The Meade Generic was not " + (arg == "/register" ? "registered" : "unregistered") +
|
||||||
" because you did not allow it.", "Meade.net", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
" because you did not allow it.", "Meade Generic", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show(ex.ToString(), "Meade.net", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
MessageBox.Show(ex.ToString(), "Meade Generic", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -357,7 +357,7 @@ namespace ASCOM.Meade.net
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show("Error while registering the server:\n" + ex.ToString(),
|
MessageBox.Show("Error while registering the server:\n" + ex.ToString(),
|
||||||
"Meade.net", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
"Meade Generic", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
@@ -426,7 +426,7 @@ namespace ASCOM.Meade.net
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show("Error while registering the server:\n" + ex.ToString(),
|
MessageBox.Show("Error while registering the server:\n" + ex.ToString(),
|
||||||
"Meade.net", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
"Meade Generic", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
||||||
bFail = true;
|
bFail = true;
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
@@ -514,7 +514,7 @@ namespace ASCOM.Meade.net
|
|||||||
if (!factory.RegisterClassObject())
|
if (!factory.RegisterClassObject())
|
||||||
{
|
{
|
||||||
MessageBox.Show("Failed to register class factory for " + type.Name,
|
MessageBox.Show("Failed to register class factory for " + type.Name,
|
||||||
"Meade.net", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
"Meade Generic", MessageBoxButtons.OK, MessageBoxIcon.Stop);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -570,7 +570,7 @@ namespace ASCOM.Meade.net
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
MessageBox.Show("Unknown argument: " + args[0] + "\nValid are : -register, -unregister and -embedding",
|
MessageBox.Show("Unknown argument: " + args[0] + "\nValid are : -register, -unregister and -embedding",
|
||||||
"Meade.net", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
"Meade Generic", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user