This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.Configuration;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
using System.Data;
|
||||
@@ -105,6 +106,8 @@ namespace DataLoader
|
||||
|
||||
public frmLoader()
|
||||
{
|
||||
string debugMode = ConfigurationManager.AppSettings["Debug"];
|
||||
VlnSettings.DebugMode = bool.Parse(debugMode); // set debug for the Volian.Controls.Library
|
||||
ldr = new Loader(_MyLog, this);
|
||||
InitializeComponent();
|
||||
MSWordToPDF.FormForPlotGraphics = this;
|
||||
@@ -137,13 +140,15 @@ namespace DataLoader
|
||||
//tbSource.Text = @"G:\PromsDat\VEHP1B\SAMGS.PRC";// South Texas STPNOC
|
||||
break;
|
||||
default:
|
||||
#if (!DEBUG)
|
||||
tbSource.Text = "";
|
||||
break;
|
||||
#else
|
||||
throw new Exception("Not configured for " + SystemInformation.ComputerName);
|
||||
#endif
|
||||
}
|
||||
//#if (!DEBUG)
|
||||
if (!VlnSettings.DebugMode)
|
||||
tbSource.Text = "";
|
||||
else
|
||||
//#else
|
||||
throw new Exception("Not configured for " + SystemInformation.ComputerName);
|
||||
//#endif
|
||||
}
|
||||
private void btnConvertSelected_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -234,10 +239,13 @@ namespace DataLoader
|
||||
private void btnConvert_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
if (!CheckLogPath()) return;
|
||||
#if (!DEBUG)
|
||||
DialogResult dlgrst = MessageBox.Show("The VE-PROMS data currently in SQL Server (Express) will be deleted.\r\n\nProceed with Data Conversion?", "WARNING", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
||||
if (dlgrst == DialogResult.No) return;
|
||||
#endif
|
||||
//#if (!DEBUG)
|
||||
if (!VlnSettings.DebugMode)
|
||||
{
|
||||
DialogResult dlgrst = MessageBox.Show("The VE-PROMS data currently in SQL Server (Express) will be deleted.\r\n\nProceed with Data Conversion?", "WARNING", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
||||
if (dlgrst == DialogResult.No) return;
|
||||
}
|
||||
//#endif
|
||||
try
|
||||
{
|
||||
//TextConvert.ResetSpecialCharacters();
|
||||
|
Reference in New Issue
Block a user