|
@@ -12,14 +12,18 @@ namespace OTSMeasureApp
|
|
|
[STAThread]
|
|
|
static void Main()
|
|
|
{
|
|
|
- //判断是否有授权
|
|
|
- var reg = new CRegistration();
|
|
|
- if (!reg.RegistrationVerification())
|
|
|
+ if (!System.Diagnostics.Debugger.IsAttached)
|
|
|
{
|
|
|
- MessageBox.Show("Error: missing authorization");
|
|
|
- System.Environment.Exit(0);
|
|
|
- return;
|
|
|
+ //判断是否有授权
|
|
|
+ var reg = new CRegistration();
|
|
|
+ if (!reg.RegistrationVerification())
|
|
|
+ {
|
|
|
+ MessageBox.Show("Error: missing authorization");
|
|
|
+ System.Environment.Exit(0);
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
//--------------------------只运行一个测量程序--------------------------------
|
|
|
|
|
|
bool flag = false;
|