This commit is contained in:
Christian Wade 2020-01-02 11:09:07 -08:00
parent e168941adf
commit fb05dc33e1
3 changed files with 2 additions and 3 deletions

View File

@ -171,6 +171,7 @@ namespace BismNormalizer.TabularCompare
if (comparisonInfo.Interactive && if (comparisonInfo.Interactive &&
!comparisonInfo.ConnectionInfoTarget.UseProject && //Upgrade in SSDT not supported !comparisonInfo.ConnectionInfoTarget.UseProject && //Upgrade in SSDT not supported
!comparisonInfo.ConnectionInfoTarget.UseDesktop && //Upgrade via port number to Desktop or SSDT not supported !comparisonInfo.ConnectionInfoTarget.UseDesktop && //Upgrade via port number to Desktop or SSDT not supported
!comparisonInfo.ConnectionInfoTarget.UseBimFile && //Upgrade to offline file not (currently) supported
System.Windows.Forms.MessageBox.Show( System.Windows.Forms.MessageBox.Show(
message + $"\nDo you want to upgrade the target to {Convert.ToString(comparisonInfo.SourceCompatibilityLevel)} and allow the comparison?", comparisonInfo.AppName, System.Windows.Forms.MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) message + $"\nDo you want to upgrade the target to {Convert.ToString(comparisonInfo.SourceCompatibilityLevel)} and allow the comparison?", comparisonInfo.AppName, System.Windows.Forms.MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
{ {

View File

@ -234,8 +234,6 @@ namespace BismNormalizer.TabularCompare.TabularMetadata
private void InitializeCalcDependenciesFromM() private void InitializeCalcDependenciesFromM()
{ {
//TODO: Doesn't deal with structured data sources (DSRs) yet
_calcDependencies.Clear(); _calcDependencies.Clear();
List<MObject> mObjects = new List<MObject>(); List<MObject> mObjects = new List<MObject>();

View File

@ -492,7 +492,7 @@ namespace BismNormalizer.TabularCompare.UI
{ {
OpenFileDialog ofd = new OpenFileDialog(); OpenFileDialog ofd = new OpenFileDialog();
ofd.InitialDirectory = (String.IsNullOrEmpty(Settings.Default.LastBimFileLocation) ? Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) : Settings.Default.LastBimFileLocation); ofd.InitialDirectory = (String.IsNullOrEmpty(Settings.Default.LastBimFileLocation) ? Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) : Settings.Default.LastBimFileLocation);
ofd.Filter = "PBIT files (.pbit)|*.pbit|BIM files (.bim)|*.bim|All files (*.*)|*.*"; ofd.Filter = "PBIT/BIM files (*.pbit;*.bim)|*.pbit;*.bim|All files (*.*)|*.*";
ofd.Title = "Open"; ofd.Title = "Open";
return ofd; return ofd;
} }