Added try/catch logic to code that loads formats
Add defaults for user configuration data
This commit is contained in:
@@ -345,15 +345,15 @@ namespace DataLoader
|
||||
|
||||
private void frmLoader_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (Properties.Settings.Default["VeSamFilename"] != null)
|
||||
if (Properties.Settings.Default["VeSamFilename"].ToString() != "")
|
||||
this.tbVesamPath.Text = Properties.Settings.Default.VeSamFilename;
|
||||
if (Properties.Settings.Default["DbfPathname"] != null)
|
||||
if (Properties.Settings.Default["DbfPathname"].ToString() != "")
|
||||
this.tbSource.Text = Properties.Settings.Default.DbfPathname;
|
||||
if (Properties.Settings.Default["LoadWordDoc"] != null)
|
||||
if (Properties.Settings.Default["LoadWordDoc"].ToString() != "")
|
||||
this.cbSaveDoc.CheckState = Properties.Settings.Default.LoadWordDoc;
|
||||
if (Properties.Settings.Default["PurgeData"] != null)
|
||||
if (Properties.Settings.Default["PurgeData"].ToString() != "")
|
||||
this.cbPurgeData.CheckState = Properties.Settings.Default.PurgeData;
|
||||
if (Properties.Settings.Default["LoadRTFDoc"] != null)
|
||||
if (Properties.Settings.Default["LoadRTFDoc"].ToString() != "")
|
||||
this.cbSaveRTF.CheckState = Properties.Settings.Default.LoadRTFDoc;
|
||||
if (Properties.Settings.Default["VePromsFilename"] != null)
|
||||
this.tbVePromsPath.Text = Properties.Settings.Default.VePromsFilename;
|
||||
@@ -370,7 +370,6 @@ namespace DataLoader
|
||||
Properties.Settings.Default.VePromsFilename = tbVePromsPath.Text;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
private void btnBrowseVeProms_Click(object sender, EventArgs e)
|
||||
{
|
||||
fbd.SelectedPath = tbVePromsPath.Text;
|
||||
|
Reference in New Issue
Block a user