8000 Added version to AboutDialog. Fixed return value of Sysdba() · utPLSQL/utPLSQL-PLSQL-Developer@841d549 · GitHub
[go: up one dir, main page]

Skip to content

Commit 841d549

Browse files
committed
Added version to AboutDialog. Fixed return value of Sysdba()
1 parent d2deeba commit 841d549

File tree

3 files changed

+41
-25
lines changed

3 files changed

+41
-25
lines changed

PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin/AboutDialog.Designer.cs

Lines changed: 36 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin/AboutDialog.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ public partial class AboutDialog : Form
77
public AboutDialog()
88
{
99
InitializeComponent();
10+
11+
var assembly = System.Reflection.Assembly.GetExecutingAssembly();
12+
var fileVersionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
13+
lblVersion.Text = $"Version {fileVersionInfo.FileVersion}";
1014
}
1115

1216
private void LinkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)

PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ private static bool Sydba()
269269
MessageBox.Show("You shouldn't run utPLSQL as SYSDBA.\n\nTest will not run.", "Connected as SYSDBA", MessageBoxButtons.OK, MessageBoxIcon.Error);
270270
return true;
271271
}
272-
return true;
272+
return false;
273273
}
274274

275275
private static void ConnectToDatabase()

0 commit comments

Comments
 (0)
0