Disable PBI Desktop dropdown if none open

This commit is contained in:
Christian Wade 2019-11-28 00:12:14 -08:00
parent e230779f64
commit 9a097a79a7

View File

@ -88,8 +88,11 @@ namespace BismNormalizer.TabularCompare.UI
}
catch { }
if (_powerBIInstances.Count > 1)
if (_powerBIInstances.Count > 0)
{
rdoSourceDesktop.Enabled = true;
rdoTargetDesktop.Enabled = true;
desktopBindingSource.DataSource = _powerBIInstances;
desktopBindingTarget.DataSource = _powerBIInstances;
@ -104,6 +107,11 @@ namespace BismNormalizer.TabularCompare.UI
BindSourceConnectionInfo();
BindTargetConnectionInfo();
}
else
{
rdoSourceDesktop.Enabled = false;
rdoTargetDesktop.Enabled = false;
}
}
private bool BindSourceConnectionInfo()