Changeset 1063


Ignore:
Timestamp:
Jan 9, 2011, 7:19:07 AM (14 years ago)
Author:
Sam Habiel
Message:

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.

Location:
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/BMXNet.csproj

    r1012 r1063  
    7676    <ConfigurationOverrideFile>
    7777    </ConfigurationOverrideFile>
    78     <DefineConstants>DEBUG;TRACE</DefineConstants>
     78    <DefineConstants>TRACE;DEBUG</DefineConstants>
    7979    <DocumentationFile>
    8080    </DocumentationFile>
  • BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/BMXNetConnectInfo.cs

    r923 r1063  
    9696                        set
    9797                        {
    98 //                              Debug.Write("ConnectInfo handle: " + this.Handle.ToString() + "\n");
    99                                 //System.IntPtr pHandle = this.Handle;
    10098                                m_timerEvent.Enabled = value;
    10199                        }
     
    245243                                                if (BMXNetEvent != null)
    246244                                                {
     245                            Debug.Write("BMXNet AutoFire event raised from BMXNetConnectInfo");
    247246                                                        BMXNetEvent(obj, args);
    248247                                                }
     
    905904                                                                Debug.Write(ex.Message);
    906905                                                                //MessageBox.Show(ex.Message, "RPMS Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
    907                                 throw new Exception(ex.Message); ;
     906                                throw ex;
    908907                                                        }
    909908                                                }while ((bStop == DialogResult.OK) && (m_BMXNetLib.Connected == false));
  • BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/BMXNetLib.cs

    r970 r1063  
    807807                        catch (Exception ex)
    808808                        {
    809                                 string s = ex.Message + ex.StackTrace;
    810                                 throw new BMXNetException(s);
     809                                //string s = ex.Message + ex.StackTrace;
     810                throw new BMXNetException(ex.Message, ex);
    811811                        }
    812812                }
     
    11061106                    Debug.Write("TransmitRPC Received: " + strResult.Replace((char) 30, (char) 10) + "\n");
    11071107                    TimeSpan executionTime = receiveTime - sendTime;
    1108                     Debug.Write("Execution Time: " + executionTime.Milliseconds + " ms.\n");
     1108                    Debug.Write("Execution Time: " + executionTime.TotalMilliseconds + " ms.\n");
     1109                    Debug.Write("-------------------------------------------------------\n");
    11091110#endif
    11101111                                        if (sOldAppContext != "")
  • BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/DSelectDivision.cs

    r967 r1063  
    130130            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
    131131            this.Text = "Select Division";
     132            this.Load += new System.EventHandler(this.DSelectDivision_Load);
    132133            this.pnlPageBottom.ResumeLayout(false);
    133134            this.pnlDescription.ResumeLayout(false);
     
    241242        }
    242243
     244        private void DSelectDivision_Load(object sender, EventArgs e)
     245        {
     246            this.Activate();
     247        }
     248
    243249
    244250        }
Note: See TracChangeset for help on using the changeset viewer.