C2024-031 Option to Disable reopen closed tabs on PROMS reentry
This commit is contained in:
@@ -11,6 +11,7 @@ using DevComponents.DotNetBar;
|
||||
using VEPROMS.Properties;
|
||||
using Volian.Base.Library;
|
||||
using DescriptiveEnum;
|
||||
using VEPROMS.CSLA.Library;
|
||||
|
||||
namespace VEPROMS
|
||||
{
|
||||
@@ -24,6 +25,9 @@ namespace VEPROMS
|
||||
get { return _CanChangeSeparateWindowsSetting; }
|
||||
set { _CanChangeSeparateWindowsSetting = value; }
|
||||
}
|
||||
|
||||
private UserSettings _usersettings;
|
||||
|
||||
public frmSysOptions()
|
||||
{
|
||||
_initializing = true;
|
||||
@@ -89,6 +93,13 @@ namespace VEPROMS
|
||||
break;
|
||||
}
|
||||
|
||||
//CSM - C2024-031 - Getting User Settings
|
||||
//and set checkboxes based on what they are set to
|
||||
_usersettings = new UserSettings(VlnSettings.UserID);
|
||||
cbOTRemember.Checked = _usersettings.UserSetting_OpenTabs_Remember;
|
||||
cbOTAutoOpen.Enabled = cbOTAutoOpen.Visible = cbOTRemember.Checked;
|
||||
cbOTAutoOpen.Checked = _usersettings.UserSetting_OpenTabs_AutoOpen || !cbOTRemember.Checked;
|
||||
|
||||
}
|
||||
private void cbEnhancedDocumentSync_CheckedChanged(object sender, System.EventArgs e)
|
||||
{
|
||||
@@ -151,6 +162,15 @@ namespace VEPROMS
|
||||
Settings.Default.PropPageStyle = 3;
|
||||
|
||||
Settings.Default.Save();
|
||||
//CSM - C2024-031 - Save User Settings
|
||||
//based on what checkboxes are set to
|
||||
bool? OTAuto = null;
|
||||
if (cbOTRemember.Checked)
|
||||
{
|
||||
OTAuto = cbOTAutoOpen.Checked;
|
||||
}
|
||||
_usersettings.SetUserSettings(cbOTRemember.Checked, OTAuto);
|
||||
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
@@ -324,5 +344,10 @@ namespace VEPROMS
|
||||
Settings.Default.UCFImportOpt = 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void cbOTRemember_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
cbOTAutoOpen.Enabled = cbOTAutoOpen.Visible = cbOTRemember.Checked;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user