Added a SQL Timeout text box to the Folder Property form.
Set the Database Default Timeout to twenty times SQL Timeout Property for the top folder. Set the Database SQL Timeout to SQL Timeout Property for the top Folder.
This commit is contained in:
@@ -226,6 +226,10 @@ namespace VEPROMS
|
||||
// make visible the text box to allow the user to change the Procedure Panel's heading (title) on the panel bar
|
||||
ppRTxtHeading.Visible = true;
|
||||
lblHeading.Visible = true;
|
||||
tbSqlTimeout.Text = _FolderConfig.Timeout;
|
||||
tbSqlTimeout.Visible = true;
|
||||
lblSqlTimeout.Visible = true;
|
||||
lblSqlTimeoutDefault.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -314,6 +318,9 @@ namespace VEPROMS
|
||||
// HIDE the text box that allows the user to change the Procedure Panel's heading (title) on the panel bar
|
||||
ppRTxtHeading.Visible = false;
|
||||
lblHeading.Visible = false;
|
||||
tbSqlTimeout.Visible = false;
|
||||
lblSqlTimeout.Visible = false;
|
||||
lblSqlTimeoutDefault.Visible = false;
|
||||
}
|
||||
_Initializing = false;
|
||||
}
|
||||
@@ -348,6 +355,7 @@ namespace VEPROMS
|
||||
// Save whether we should display the default values on this property page
|
||||
Settings.Default.ShowDefaultFolderProp = ppCbShwDefSettings.Checked;
|
||||
Settings.Default.Save();
|
||||
_FolderConfig.Timeout = tbSqlTimeout.Text;
|
||||
_FolderConfig.MyFolder.Config = _FolderConfig.ToString();
|
||||
_FolderConfig.MyFolder.Save().Dispose();
|
||||
SaveApprStages();
|
||||
|
Reference in New Issue
Block a user