Bug fix for unhandled exception
This commit is contained in:
parent
1e72176de1
commit
75246c1f64
@ -18,6 +18,7 @@ namespace AlmToolkit
|
|||||||
{
|
{
|
||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException);
|
||||||
|
|
||||||
if (args != null && args.Length > 0)
|
if (args != null && args.Length > 0)
|
||||||
{
|
{
|
||||||
|
@ -64,7 +64,6 @@ Global
|
|||||||
{765C0612-BB8F-4261-87AE-B5B842BE3C26}.Release|x64.ActiveCfg = Release|x64
|
{765C0612-BB8F-4261-87AE-B5B842BE3C26}.Release|x64.ActiveCfg = Release|x64
|
||||||
{765C0612-BB8F-4261-87AE-B5B842BE3C26}.Release|x64.Build.0 = Release|x64
|
{765C0612-BB8F-4261-87AE-B5B842BE3C26}.Release|x64.Build.0 = Release|x64
|
||||||
{03220A9A-AB29-4B5F-8BCB-D3545FD8F3EF}.Debug|Any CPU.ActiveCfg = Debug
|
{03220A9A-AB29-4B5F-8BCB-D3545FD8F3EF}.Debug|Any CPU.ActiveCfg = Debug
|
||||||
{03220A9A-AB29-4B5F-8BCB-D3545FD8F3EF}.Debug|Any CPU.Build.0 = Debug
|
|
||||||
{03220A9A-AB29-4B5F-8BCB-D3545FD8F3EF}.Debug|x64.ActiveCfg = Debug
|
{03220A9A-AB29-4B5F-8BCB-D3545FD8F3EF}.Debug|x64.ActiveCfg = Debug
|
||||||
{03220A9A-AB29-4B5F-8BCB-D3545FD8F3EF}.Debug|x64.Build.0 = Debug
|
{03220A9A-AB29-4B5F-8BCB-D3545FD8F3EF}.Debug|x64.Build.0 = Debug
|
||||||
{03220A9A-AB29-4B5F-8BCB-D3545FD8F3EF}.Release|Any CPU.ActiveCfg = Release
|
{03220A9A-AB29-4B5F-8BCB-D3545FD8F3EF}.Release|Any CPU.ActiveCfg = Release
|
||||||
|
@ -401,8 +401,15 @@ namespace BismNormalizer.TabularCompare.UI
|
|||||||
infoSourceTemp.UseProject = rdoSourceDesktop.Checked;
|
infoSourceTemp.UseProject = rdoSourceDesktop.Checked;
|
||||||
infoSourceTemp.UseBimFile = rdoSourceFile.Checked;
|
infoSourceTemp.UseBimFile = rdoSourceFile.Checked;
|
||||||
infoSourceTemp.ProjectName = cboSourceDesktop.Text;
|
infoSourceTemp.ProjectName = cboSourceDesktop.Text;
|
||||||
|
|
||||||
|
//Fudge start
|
||||||
//infoSourceTemp.Project = (PowerBIInstance)cboSourceDesktop.SelectedValue;
|
//infoSourceTemp.Project = (PowerBIInstance)cboSourceDesktop.SelectedValue;
|
||||||
int portSourceTemp = (int)cboSourceDesktop.SelectedValue; //Fudge start
|
int portSourceTemp = -1;
|
||||||
|
if (cboSourceDesktop.SelectedValue != null)
|
||||||
|
{
|
||||||
|
portSourceTemp = (int)cboSourceDesktop.SelectedValue;
|
||||||
|
}
|
||||||
|
|
||||||
infoSourceTemp.ServerName = cboSourceServer.Text;
|
infoSourceTemp.ServerName = cboSourceServer.Text;
|
||||||
infoSourceTemp.DatabaseName = cboSourceDatabase.Text;
|
infoSourceTemp.DatabaseName = cboSourceDatabase.Text;
|
||||||
infoSourceTemp.BimFile = txtSourceFile.Text;
|
infoSourceTemp.BimFile = txtSourceFile.Text;
|
||||||
@ -420,8 +427,14 @@ namespace BismNormalizer.TabularCompare.UI
|
|||||||
rdoTargetFile.Checked = infoSourceTemp.UseBimFile;
|
rdoTargetFile.Checked = infoSourceTemp.UseBimFile;
|
||||||
rdoTargetDataset.Checked = (!infoSourceTemp.UseProject && !infoSourceTemp.UseBimFile);
|
rdoTargetDataset.Checked = (!infoSourceTemp.UseProject && !infoSourceTemp.UseBimFile);
|
||||||
cboTargetDesktop.Text = infoSourceTemp.ProjectName;
|
cboTargetDesktop.Text = infoSourceTemp.ProjectName;
|
||||||
|
|
||||||
//cboTargetDesktop.SelectedValue = infoSourceTemp.Project;
|
//cboTargetDesktop.SelectedValue = infoSourceTemp.Project;
|
||||||
cboTargetDesktop.SelectedValue = portSourceTemp; //Fudge end
|
if (portSourceTemp != -1)
|
||||||
|
{
|
||||||
|
cboTargetDesktop.SelectedValue = portSourceTemp;
|
||||||
|
}
|
||||||
|
//Fudge end
|
||||||
|
|
||||||
cboTargetServer.Text = infoSourceTemp.ServerName;
|
cboTargetServer.Text = infoSourceTemp.ServerName;
|
||||||
cboTargetDatabase.Text = infoSourceTemp.DatabaseName;
|
cboTargetDatabase.Text = infoSourceTemp.DatabaseName;
|
||||||
txtTargetFile.Text = infoSourceTemp.BimFile;
|
txtTargetFile.Text = infoSourceTemp.BimFile;
|
||||||
|
Loading…
Reference in New Issue
Block a user