BMXNetConnectInfo:
Pass up BMXNetException instead of recreating it as a new generic Exception; for more accurate error catching. W32Handle for class not acquired. Don't even know why we needed that. DSelectDivision: Load event now has this.Activate to bring the window to the front. Needed b/c of new splash screen in Sched GUI which will show up front unless this form is activated. BMXNetLib: Better handling of exception in OpenConnectionCommon (pass inner exception when creating BMXNetException.
This commit is contained in:
parent
b414a2b7f1
commit
37366be3d9
|
@ -75,7 +75,7 @@
|
||||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
||||||
<ConfigurationOverrideFile>
|
<ConfigurationOverrideFile>
|
||||||
</ConfigurationOverrideFile>
|
</ConfigurationOverrideFile>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||||
<DocumentationFile>
|
<DocumentationFile>
|
||||||
</DocumentationFile>
|
</DocumentationFile>
|
||||||
<DebugSymbols>false</DebugSymbols>
|
<DebugSymbols>false</DebugSymbols>
|
||||||
|
|
|
@ -95,8 +95,6 @@ namespace IndianHealthService.BMXNet
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
// Debug.Write("ConnectInfo handle: " + this.Handle.ToString() + "\n");
|
|
||||||
//System.IntPtr pHandle = this.Handle;
|
|
||||||
m_timerEvent.Enabled = value;
|
m_timerEvent.Enabled = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -244,6 +242,7 @@ namespace IndianHealthService.BMXNet
|
||||||
args.BMXParam = "";
|
args.BMXParam = "";
|
||||||
if (BMXNetEvent != null)
|
if (BMXNetEvent != null)
|
||||||
{
|
{
|
||||||
|
Debug.Write("BMXNet AutoFire event raised from BMXNetConnectInfo");
|
||||||
BMXNetEvent(obj, args);
|
BMXNetEvent(obj, args);
|
||||||
}
|
}
|
||||||
this.m_timerEvent.Enabled = true;
|
this.m_timerEvent.Enabled = true;
|
||||||
|
@ -904,7 +903,7 @@ namespace IndianHealthService.BMXNet
|
||||||
{
|
{
|
||||||
Debug.Write(ex.Message);
|
Debug.Write(ex.Message);
|
||||||
//MessageBox.Show(ex.Message, "RPMS Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
//MessageBox.Show(ex.Message, "RPMS Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
throw new Exception(ex.Message); ;
|
throw ex;
|
||||||
}
|
}
|
||||||
}while ((bStop == DialogResult.OK) && (m_BMXNetLib.Connected == false));
|
}while ((bStop == DialogResult.OK) && (m_BMXNetLib.Connected == false));
|
||||||
}
|
}
|
||||||
|
|
|
@ -806,8 +806,8 @@ namespace IndianHealthService.BMXNet
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
string s = ex.Message + ex.StackTrace;
|
//string s = ex.Message + ex.StackTrace;
|
||||||
throw new BMXNetException(s);
|
throw new BMXNetException(ex.Message, ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1105,7 +1105,8 @@ namespace IndianHealthService.BMXNet
|
||||||
DateTime receiveTime = DateTime.Now;
|
DateTime receiveTime = DateTime.Now;
|
||||||
Debug.Write("TransmitRPC Received: " + strResult.Replace((char) 30, (char) 10) + "\n");
|
Debug.Write("TransmitRPC Received: " + strResult.Replace((char) 30, (char) 10) + "\n");
|
||||||
TimeSpan executionTime = receiveTime - sendTime;
|
TimeSpan executionTime = receiveTime - sendTime;
|
||||||
Debug.Write("Execution Time: " + executionTime.Milliseconds + " ms.\n");
|
Debug.Write("Execution Time: " + executionTime.TotalMilliseconds + " ms.\n");
|
||||||
|
Debug.Write("-------------------------------------------------------\n");
|
||||||
#endif
|
#endif
|
||||||
if (sOldAppContext != "")
|
if (sOldAppContext != "")
|
||||||
{
|
{
|
||||||
|
|
|
@ -129,6 +129,7 @@ namespace IndianHealthService.BMXNet
|
||||||
this.Name = "DSelectDivision";
|
this.Name = "DSelectDivision";
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
this.Text = "Select Division";
|
this.Text = "Select Division";
|
||||||
|
this.Load += new System.EventHandler(this.DSelectDivision_Load);
|
||||||
this.pnlPageBottom.ResumeLayout(false);
|
this.pnlPageBottom.ResumeLayout(false);
|
||||||
this.pnlDescription.ResumeLayout(false);
|
this.pnlDescription.ResumeLayout(false);
|
||||||
this.grpDescriptionResourceGroup.ResumeLayout(false);
|
this.grpDescriptionResourceGroup.ResumeLayout(false);
|
||||||
|
@ -240,6 +241,11 @@ namespace IndianHealthService.BMXNet
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void DSelectDivision_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.Activate();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue