diff --git a/csharp/ExcelAddIn/util/Utility.cs b/csharp/ExcelAddIn/util/Utility.cs index 4b9de77ca3a..149a1c08392 100644 --- a/csharp/ExcelAddIn/util/Utility.cs +++ b/csharp/ExcelAddIn/util/Utility.cs @@ -4,6 +4,8 @@ namespace Deephaven.ExcelAddIn.Util; internal static class Utility { + public const string VersionString = "Version 0.8.0"; + public static T Exchange(ref T item, T newValue) { var result = item; item = newValue; diff --git a/csharp/ExcelAddIn/views/ConnectionManagerDialog.Designer.cs b/csharp/ExcelAddIn/views/ConnectionManagerDialog.Designer.cs index 604c97b2d12..08c6de2edd2 100644 --- a/csharp/ExcelAddIn/views/ConnectionManagerDialog.Designer.cs +++ b/csharp/ExcelAddIn/views/ConnectionManagerDialog.Designer.cs @@ -23,7 +23,6 @@ protected override void Dispose(bool disposing) { /// the contents of this method with the code editor. /// private void InitializeComponent() { - colorDialog1 = new ColorDialog(); dataGridView1 = new DataGridView(); newButton = new Button(); connectionsLabel = new Label(); @@ -31,6 +30,7 @@ private void InitializeComponent() { deleteButton = new Button(); reconnectButton = new Button(); makeDefaultButton = new Button(); + versionLabel = new Label(); ((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit(); SuspendLayout(); // @@ -114,11 +114,21 @@ private void InitializeComponent() { makeDefaultButton.UseVisualStyleBackColor = true; makeDefaultButton.Click += makeDefaultButton_Click; // + // versionLabel + // + versionLabel.AutoSize = true; + versionLabel.Location = new Point(12, 581); + versionLabel.Name = "versionLabel"; + versionLabel.Size = new Size(59, 25); + versionLabel.TabIndex = 6; + versionLabel.Text = "label1"; + // // ConnectionManagerDialog // AutoScaleDimensions = new SizeF(10F, 25F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(1115, 615); + Controls.Add(versionLabel); Controls.Add(makeDefaultButton); Controls.Add(reconnectButton); Controls.Add(deleteButton); @@ -134,8 +144,6 @@ private void InitializeComponent() { } #endregion - - private ColorDialog colorDialog1; private DataGridView dataGridView1; private Button newButton; private Label connectionsLabel; @@ -143,5 +151,6 @@ private void InitializeComponent() { private Button deleteButton; private Button reconnectButton; private Button makeDefaultButton; + private Label versionLabel; } } \ No newline at end of file diff --git a/csharp/ExcelAddIn/views/ConnectionManagerDialog.cs b/csharp/ExcelAddIn/views/ConnectionManagerDialog.cs index d56b79f950a..27d561bddc9 100644 --- a/csharp/ExcelAddIn/views/ConnectionManagerDialog.cs +++ b/csharp/ExcelAddIn/views/ConnectionManagerDialog.cs @@ -1,4 +1,5 @@ -using Deephaven.ExcelAddIn.Viewmodels; +using Deephaven.ExcelAddIn.Util; +using Deephaven.ExcelAddIn.Viewmodels; namespace Deephaven.ExcelAddIn.Views; @@ -18,6 +19,7 @@ public ConnectionManagerDialog() { _bindingSource.DataSource = typeof(ConnectionManagerDialogRow); dataGridView1.DataSource = _bindingSource; + versionLabel.Text = Utility.VersionString; } public void AddRow(ConnectionManagerDialogRow row) { diff --git a/csharp/ExcelAddIn/views/ConnectionManagerDialog.resx b/csharp/ExcelAddIn/views/ConnectionManagerDialog.resx index 7f2cf2b8014..b92c16350e8 100644 --- a/csharp/ExcelAddIn/views/ConnectionManagerDialog.resx +++ b/csharp/ExcelAddIn/views/ConnectionManagerDialog.resx @@ -1,7 +1,7 @@