db connection initialization fix

This commit is contained in:
John Jenko 2009-09-22 13:59:53 +00:00
parent 38d744fbe7
commit 7b14ead888

View File

@ -83,7 +83,6 @@ namespace VEPROMS
#endregion #endregion
public frmVEPROMS() public frmVEPROMS()
{ {
InitializeComponent();
#if (DEBUG) #if (DEBUG)
//use local data (for development/debug mode) //use local data (for development/debug mode)
if (Environment.MachineName == "RMARK-PC") if (Environment.MachineName == "RMARK-PC")
@ -101,6 +100,7 @@ namespace VEPROMS
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS"; VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS";
#endif #endif
InitializeComponent();
// set the color of the ribbon // set the color of the ribbon
RibbonPredefinedColorSchemes.ChangeOffice2007ColorTable((eOffice2007ColorScheme)Settings.Default.SystemColor); RibbonPredefinedColorSchemes.ChangeOffice2007ColorTable((eOffice2007ColorScheme)Settings.Default.SystemColor);