76 |
BOOL Ch6udlnssystemDlg::OnInitDialog() |
BOOL Ch6udlnssystemDlg::OnInitDialog() |
77 |
{ |
{ |
78 |
CDialog::OnInitDialog(); |
CDialog::OnInitDialog(); |
79 |
|
CWaitCursor wait; |
80 |
|
|
81 |
// Add "About..." menu item to system menu. |
// Add "About..." menu item to system menu. |
82 |
|
|
108 |
m_tabs.SetCurSel(0); |
m_tabs.SetCurSel(0); |
109 |
|
|
110 |
|
|
111 |
DatabaseLayer *dbl = new DatabaseLayer; |
try { |
112 |
CommonStorage::Instance()->setDBLayer(dbl); |
DatabaseLayer *dbl = new DatabaseLayer; |
113 |
|
CommonStorage::Instance()->setDBLayer(dbl); |
114 |
|
} catch (...) { |
115 |
|
MessageBox(CString("Could not establish connection to the database server\r\n") + |
116 |
|
"Please contact your network administrator\r\n" + |
117 |
|
"(This application shuts down automatically)"); |
118 |
|
OnOK(); |
119 |
|
} |
120 |
|
|
121 |
|
|
122 |
// TODO: Add extra initialization here |
// TODO: Add extra initialization here |