C2018-039: Upgrade – User Control of Format
This commit is contained in:
@@ -70,6 +70,25 @@ namespace VEPROMS
|
||||
cbEnhancedDocumentSync.Checked = Settings.Default.SyncEnhancedDocuments;
|
||||
cbSeparateWindows.Checked = Settings.Default.SeparateWindows;
|
||||
txbxVisioPath.Text = Settings.Default.VisioPath;
|
||||
switch (Settings.Default.UCFImportOpt) // see dlgExportImport for descripton of these options.
|
||||
{
|
||||
case 0:
|
||||
cbUCFIgnore.Checked = true;
|
||||
break;
|
||||
case 1:
|
||||
cbUCFLNotUsed.Checked = true;
|
||||
break;
|
||||
case 2:
|
||||
cbUCFLOnlyImport.Checked = true;
|
||||
break;
|
||||
case 3:
|
||||
cbUCFLUseAll.Checked = true;
|
||||
break;
|
||||
case 4:
|
||||
cbUCFLForSetOnly.Checked = true;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
private void cbEnhancedDocumentSync_CheckedChanged(object sender, System.EventArgs e)
|
||||
{
|
||||
@@ -147,6 +166,7 @@ namespace VEPROMS
|
||||
private bool ss_SyncEnhancedDocuments;
|
||||
private bool ss_SeparateWindows;
|
||||
private string ss_VisioPath;
|
||||
private int ss_UCFImportOpt;
|
||||
|
||||
private void SaveStartingSettings()
|
||||
{
|
||||
@@ -161,6 +181,7 @@ namespace VEPROMS
|
||||
ss_SyncEnhancedDocuments = Settings.Default.SyncEnhancedDocuments;
|
||||
ss_SeparateWindows = Settings.Default.SeparateWindows;
|
||||
ss_VisioPath = Settings.Default.VisioPath;
|
||||
ss_UCFImportOpt = Settings.Default.UCFImportOpt;
|
||||
}
|
||||
|
||||
private void RestoreStartingSettings() // used with the cancel button
|
||||
@@ -176,6 +197,7 @@ namespace VEPROMS
|
||||
Settings.Default.SyncEnhancedDocuments = ss_SyncEnhancedDocuments;
|
||||
Settings.Default.SeparateWindows = ss_SeparateWindows;
|
||||
Settings.Default.VisioPath = ss_VisioPath;
|
||||
Settings.Default.UCFImportOpt = ss_UCFImportOpt;
|
||||
}
|
||||
|
||||
|
||||
@@ -262,5 +284,45 @@ namespace VEPROMS
|
||||
{
|
||||
Settings.Default.VisioPath = txbxVisioPath.Text;
|
||||
}
|
||||
|
||||
private void cbUCFIgnore_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!_initializing)
|
||||
{
|
||||
Settings.Default.UCFImportOpt = 0;
|
||||
}
|
||||
}
|
||||
|
||||
private void cbUCFLNotUsed_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!_initializing)
|
||||
{
|
||||
Settings.Default.UCFImportOpt = 1;
|
||||
}
|
||||
}
|
||||
|
||||
private void cbUCFLOnlyImport_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!_initializing)
|
||||
{
|
||||
Settings.Default.UCFImportOpt = 2;
|
||||
}
|
||||
}
|
||||
|
||||
private void cbUCFLUseAll_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!_initializing)
|
||||
{
|
||||
Settings.Default.UCFImportOpt = 3;
|
||||
}
|
||||
}
|
||||
|
||||
private void cbUCFLForSetOnly_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!_initializing)
|
||||
{
|
||||
Settings.Default.UCFImportOpt = 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user