Disable PBI Desktop dropdown if none open
This commit is contained in:
parent
e230779f64
commit
9a097a79a7
@ -88,8 +88,11 @@ namespace BismNormalizer.TabularCompare.UI
|
|||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
|
|
||||||
if (_powerBIInstances.Count > 1)
|
if (_powerBIInstances.Count > 0)
|
||||||
{
|
{
|
||||||
|
rdoSourceDesktop.Enabled = true;
|
||||||
|
rdoTargetDesktop.Enabled = true;
|
||||||
|
|
||||||
desktopBindingSource.DataSource = _powerBIInstances;
|
desktopBindingSource.DataSource = _powerBIInstances;
|
||||||
desktopBindingTarget.DataSource = _powerBIInstances;
|
desktopBindingTarget.DataSource = _powerBIInstances;
|
||||||
|
|
||||||
@ -104,6 +107,11 @@ namespace BismNormalizer.TabularCompare.UI
|
|||||||
BindSourceConnectionInfo();
|
BindSourceConnectionInfo();
|
||||||
BindTargetConnectionInfo();
|
BindTargetConnectionInfo();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rdoSourceDesktop.Enabled = false;
|
||||||
|
rdoTargetDesktop.Enabled = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool BindSourceConnectionInfo()
|
private bool BindSourceConnectionInfo()
|
||||||
|
Loading…
Reference in New Issue
Block a user