Add more info to About dialog
This commit is contained in:
parent
756d387238
commit
1991bf5b4d
@ -2,9 +2,9 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
mc:Ignorable="d" d:DesignWidth="450" d:DesignHeight="600"
|
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="600"
|
||||||
MinWidth="450" MinHeight="550"
|
MinWidth="500" MinHeight="550"
|
||||||
Width="450" Height="600"
|
Width="500" Height="600"
|
||||||
x:Class="LibationAvalonia.Dialogs.AboutDialog"
|
x:Class="LibationAvalonia.Dialogs.AboutDialog"
|
||||||
xmlns:controls="clr-namespace:LibationAvalonia.Controls"
|
xmlns:controls="clr-namespace:LibationAvalonia.Controls"
|
||||||
Title="About Libation"
|
Title="About Libation"
|
||||||
@ -12,9 +12,9 @@
|
|||||||
|
|
||||||
<Grid Margin="10" ColumnDefinitions="Auto,*" RowDefinitions="Auto,Auto,Auto,Auto,*">
|
<Grid Margin="10" ColumnDefinitions="Auto,*" RowDefinitions="Auto,Auto,Auto,Auto,*">
|
||||||
|
|
||||||
<TextBlock Grid.ColumnSpan="2" FontSize="18" FontWeight="Bold" Text="{Binding Version}" />
|
<controls:LinkLabel Grid.ColumnSpan="2" FontSize="18" FontWeight="Bold" Text="{Binding Version}" ToolTip.Tip="View Release Notes" Tapped="ViewReleaseNotes_Tapped" />
|
||||||
|
|
||||||
<controls:LinkLabel Grid.Column="1" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Release Notes" Tapped="ViewReleaseNotes_Tapped"/>
|
<controls:LinkLabel Grid.Column="1" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Right" Text="https://getlibation.com" Tapped="Link_getlibation"/>
|
||||||
|
|
||||||
<Button Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" Margin="0,20,0,0" IsEnabled="{Binding CanCheckForUpgrade}" Content="{Binding UpgradeButtonText}" Click="CheckForUpgrade_Click" />
|
<Button Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" Margin="0,20,0,0" IsEnabled="{Binding CanCheckForUpgrade}" Content="{Binding UpgradeButtonText}" Click="CheckForUpgrade_Click" />
|
||||||
|
|
||||||
@ -38,10 +38,12 @@
|
|||||||
</TransformGroup>
|
</TransformGroup>
|
||||||
</Path.RenderTransform>
|
</Path.RenderTransform>
|
||||||
</Path>
|
</Path>
|
||||||
|
<controls:LinkLabel Canvas.Left="50" Canvas.Top="40" Text="rmcrackan" Tapped="Link_rmcrackan" ToolTip.Tip="View rmcrackan's GitHub profile" />
|
||||||
|
<controls:LinkLabel Canvas.Right="50" Canvas.Top="40" Text="MBucari" Tapped="Link_MBucari" ToolTip.Tip="View MBucari's GitHub profile" />
|
||||||
</Canvas>
|
</Canvas>
|
||||||
|
|
||||||
<TextBlock Grid.Row="3" VerticalAlignment="Center" FontSize="16" FontWeight="Bold" Text="Loaded Assemblies"/>
|
<TextBlock Grid.Row="3" VerticalAlignment="Center" FontSize="16" FontWeight="Bold" Text="Loaded Assemblies"/>
|
||||||
<Button Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" Padding="10,0" Content="Copy to Clopboard" Command="{Binding CopyAssembliesAsync}"/>
|
<Button Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" Padding="10,0" Content="Copy to Clipboard" Command="{Binding CopyAssembliesAsync}"/>
|
||||||
|
|
||||||
<ListBox Grid.Row="4" Grid.ColumnSpan="2" Margin="0,10,0,0" ItemsSource="{Binding Assemblies}">
|
<ListBox Grid.Row="4" Grid.ColumnSpan="2" Margin="0,10,0,0" ItemsSource="{Binding Assemblies}">
|
||||||
<ListBox.Styles>
|
<ListBox.Styles>
|
||||||
|
|||||||
@ -50,10 +50,12 @@ namespace LibationAvalonia.Dialogs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void Link_rmcrackan(object sender, Avalonia.Input.TappedEventArgs e) => Dinah.Core.Go.To.Url($"ht" + "tps://github.com/rmcrackan");
|
||||||
|
private void Link_MBucari(object sender, Avalonia.Input.TappedEventArgs e) => Dinah.Core.Go.To.Url($"ht" + "tps://github.com/MBucari");
|
||||||
|
private void Link_getlibation(object sender, Avalonia.Input.TappedEventArgs e) => Dinah.Core.Go.To.Url(AppScaffolding.LibationScaffolding.WebsiteUrl);
|
||||||
|
|
||||||
private void ViewReleaseNotes_Tapped(object sender, Avalonia.Input.TappedEventArgs e)
|
private void ViewReleaseNotes_Tapped(object sender, Avalonia.Input.TappedEventArgs e)
|
||||||
{
|
=> Dinah.Core.Go.To.Url($"{AppScaffolding.LibationScaffolding.RepositoryUrl}/releases/tag/v{AppScaffolding.LibationScaffolding.BuildVersion.ToString(3)}");
|
||||||
Dinah.Core.Go.To.Url($"{AppScaffolding.LibationScaffolding.RepositoryUrl}/releases/tag/v{AppScaffolding.LibationScaffolding.BuildVersion.ToString(3)}");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AboutVM : ViewModelBase
|
public class AboutVM : ViewModelBase
|
||||||
|
|||||||
230
Source/LibationWinForms/Dialogs/AboutDialog.Designer.cs
generated
230
Source/LibationWinForms/Dialogs/AboutDialog.Designer.cs
generated
@ -28,128 +28,175 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
pictureBox1 = new System.Windows.Forms.PictureBox();
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||||
versionLbl = new System.Windows.Forms.Label();
|
this.releaseNotesLbl = new System.Windows.Forms.LinkLabel();
|
||||||
releaseNotesLbl = new System.Windows.Forms.LinkLabel();
|
this.checkForUpgradeBtn = new System.Windows.Forms.Button();
|
||||||
checkForUpgradeBtn = new System.Windows.Forms.Button();
|
this.listView1 = new System.Windows.Forms.ListView();
|
||||||
listView1 = new System.Windows.Forms.ListView();
|
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
|
||||||
columnHeader1 = new System.Windows.Forms.ColumnHeader();
|
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
|
||||||
columnHeader2 = new System.Windows.Forms.ColumnHeader();
|
this.copyBtn = new System.Windows.Forms.Button();
|
||||||
copyBtn = new System.Windows.Forms.Button();
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
label2 = new System.Windows.Forms.Label();
|
this.getLibationLbl = new System.Windows.Forms.LinkLabel();
|
||||||
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
|
this.rmcrackanLbl = new System.Windows.Forms.LinkLabel();
|
||||||
SuspendLayout();
|
this.MBucariLbl = new System.Windows.Forms.LinkLabel();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// pictureBox1
|
// pictureBox1
|
||||||
//
|
//
|
||||||
pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
|
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
pictureBox1.Image = Properties.Resources.cheers;
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
pictureBox1.Location = new System.Drawing.Point(12, 105);
|
this.pictureBox1.Image = global::LibationWinForms.Properties.Resources.cheers;
|
||||||
pictureBox1.Name = "pictureBox1";
|
this.pictureBox1.Location = new System.Drawing.Point(22, 224);
|
||||||
pictureBox1.Size = new System.Drawing.Size(410, 283);
|
this.pictureBox1.Margin = new System.Windows.Forms.Padding(6);
|
||||||
pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
this.pictureBox1.Name = "pictureBox1";
|
||||||
pictureBox1.TabIndex = 0;
|
this.pictureBox1.Size = new System.Drawing.Size(761, 604);
|
||||||
pictureBox1.TabStop = false;
|
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
||||||
//
|
this.pictureBox1.TabIndex = 0;
|
||||||
// versionLbl
|
this.pictureBox1.TabStop = false;
|
||||||
//
|
|
||||||
versionLbl.AutoSize = true;
|
|
||||||
versionLbl.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
|
|
||||||
versionLbl.Location = new System.Drawing.Point(12, 9);
|
|
||||||
versionLbl.Name = "versionLbl";
|
|
||||||
versionLbl.Size = new System.Drawing.Size(198, 21);
|
|
||||||
versionLbl.TabIndex = 1;
|
|
||||||
versionLbl.Text = "Libation Classic v11.0.0.0";
|
|
||||||
//
|
//
|
||||||
// releaseNotesLbl
|
// releaseNotesLbl
|
||||||
//
|
//
|
||||||
releaseNotesLbl.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
|
this.releaseNotesLbl.AutoSize = true;
|
||||||
releaseNotesLbl.AutoSize = true;
|
this.releaseNotesLbl.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||||
releaseNotesLbl.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
this.releaseNotesLbl.Location = new System.Drawing.Point(22, 26);
|
||||||
releaseNotesLbl.Location = new System.Drawing.Point(319, 10);
|
this.releaseNotesLbl.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||||
releaseNotesLbl.Name = "releaseNotesLbl";
|
this.releaseNotesLbl.Name = "releaseNotesLbl";
|
||||||
releaseNotesLbl.Size = new System.Drawing.Size(103, 20);
|
this.releaseNotesLbl.Size = new System.Drawing.Size(343, 41);
|
||||||
releaseNotesLbl.TabIndex = 2;
|
this.releaseNotesLbl.TabIndex = 2;
|
||||||
releaseNotesLbl.TabStop = true;
|
this.releaseNotesLbl.TabStop = true;
|
||||||
releaseNotesLbl.Text = "Release Notes";
|
this.releaseNotesLbl.Text = "Libation Classic v11.0.0.0";
|
||||||
releaseNotesLbl.LinkClicked += releaseNotesLbl_LinkClicked;
|
|
||||||
//
|
//
|
||||||
// checkForUpgradeBtn
|
// checkForUpgradeBtn
|
||||||
//
|
//
|
||||||
checkForUpgradeBtn.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
|
this.checkForUpgradeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
checkForUpgradeBtn.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
checkForUpgradeBtn.Location = new System.Drawing.Point(12, 54);
|
this.checkForUpgradeBtn.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||||
checkForUpgradeBtn.Name = "checkForUpgradeBtn";
|
this.checkForUpgradeBtn.Location = new System.Drawing.Point(22, 115);
|
||||||
checkForUpgradeBtn.Size = new System.Drawing.Size(410, 31);
|
this.checkForUpgradeBtn.Margin = new System.Windows.Forms.Padding(6);
|
||||||
checkForUpgradeBtn.TabIndex = 3;
|
this.checkForUpgradeBtn.Name = "checkForUpgradeBtn";
|
||||||
checkForUpgradeBtn.Text = "Check for Upgrade";
|
this.checkForUpgradeBtn.Size = new System.Drawing.Size(761, 66);
|
||||||
checkForUpgradeBtn.UseVisualStyleBackColor = true;
|
this.checkForUpgradeBtn.TabIndex = 3;
|
||||||
checkForUpgradeBtn.Click += checkForUpgradeBtn_Click;
|
this.checkForUpgradeBtn.Text = "Check for Upgrade";
|
||||||
|
this.checkForUpgradeBtn.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// listView1
|
// listView1
|
||||||
//
|
//
|
||||||
listView1.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
|
this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { columnHeader1, columnHeader2 });
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
listView1.Location = new System.Drawing.Point(12, 444);
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
listView1.Name = "listView1";
|
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||||
listView1.Size = new System.Drawing.Size(410, 105);
|
this.columnHeader1,
|
||||||
listView1.TabIndex = 4;
|
this.columnHeader2});
|
||||||
listView1.UseCompatibleStateImageBehavior = false;
|
this.listView1.Location = new System.Drawing.Point(22, 947);
|
||||||
listView1.View = System.Windows.Forms.View.Details;
|
this.listView1.Margin = new System.Windows.Forms.Padding(6);
|
||||||
|
this.listView1.Name = "listView1";
|
||||||
|
this.listView1.Size = new System.Drawing.Size(758, 219);
|
||||||
|
this.listView1.TabIndex = 4;
|
||||||
|
this.listView1.UseCompatibleStateImageBehavior = false;
|
||||||
|
this.listView1.View = System.Windows.Forms.View.Details;
|
||||||
//
|
//
|
||||||
// columnHeader1
|
// columnHeader1
|
||||||
//
|
//
|
||||||
columnHeader1.Text = "Assembly";
|
this.columnHeader1.Text = "Assembly";
|
||||||
//
|
//
|
||||||
// columnHeader2
|
// columnHeader2
|
||||||
//
|
//
|
||||||
columnHeader2.Text = "Version";
|
this.columnHeader2.Text = "Version";
|
||||||
//
|
//
|
||||||
// copyBtn
|
// copyBtn
|
||||||
//
|
//
|
||||||
copyBtn.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
|
this.copyBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
copyBtn.Location = new System.Drawing.Point(304, 415);
|
this.copyBtn.Location = new System.Drawing.Point(565, 885);
|
||||||
copyBtn.Name = "copyBtn";
|
this.copyBtn.Margin = new System.Windows.Forms.Padding(6);
|
||||||
copyBtn.Size = new System.Drawing.Size(118, 23);
|
this.copyBtn.Name = "copyBtn";
|
||||||
copyBtn.TabIndex = 5;
|
this.copyBtn.Size = new System.Drawing.Size(219, 49);
|
||||||
copyBtn.Text = "Copy to Clipboard";
|
this.copyBtn.TabIndex = 5;
|
||||||
copyBtn.UseVisualStyleBackColor = true;
|
this.copyBtn.Text = "Copy to Clipboard";
|
||||||
copyBtn.Click += copyBtn_Click;
|
this.copyBtn.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// label2
|
// label2
|
||||||
//
|
//
|
||||||
label2.AutoSize = true;
|
this.label2.AutoSize = true;
|
||||||
label2.Location = new System.Drawing.Point(12, 419);
|
this.label2.Location = new System.Drawing.Point(22, 894);
|
||||||
label2.Name = "label2";
|
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||||
label2.Size = new System.Drawing.Size(108, 15);
|
this.label2.Name = "label2";
|
||||||
label2.TabIndex = 6;
|
this.label2.Size = new System.Drawing.Size(217, 32);
|
||||||
label2.Text = "Loaded Assemblies";
|
this.label2.TabIndex = 6;
|
||||||
|
this.label2.Text = "Loaded Assemblies";
|
||||||
|
//
|
||||||
|
// getLibationLbl
|
||||||
|
//
|
||||||
|
this.getLibationLbl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.getLibationLbl.AutoSize = true;
|
||||||
|
this.getLibationLbl.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||||
|
this.getLibationLbl.Location = new System.Drawing.Point(455, 26);
|
||||||
|
this.getLibationLbl.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||||
|
this.getLibationLbl.Name = "getLibationLbl";
|
||||||
|
this.getLibationLbl.Size = new System.Drawing.Size(325, 41);
|
||||||
|
this.getLibationLbl.TabIndex = 7;
|
||||||
|
this.getLibationLbl.TabStop = true;
|
||||||
|
this.getLibationLbl.Text = "https://getlibation.com";
|
||||||
|
this.getLibationLbl.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.getLibationLbl_LinkClicked);
|
||||||
|
//
|
||||||
|
// rmcrackanLbl
|
||||||
|
//
|
||||||
|
this.rmcrackanLbl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.rmcrackanLbl.AutoSize = true;
|
||||||
|
this.rmcrackanLbl.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||||
|
this.rmcrackanLbl.Location = new System.Drawing.Point(45, 567);
|
||||||
|
this.rmcrackanLbl.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||||
|
this.rmcrackanLbl.Name = "rmcrackanLbl";
|
||||||
|
this.rmcrackanLbl.Size = new System.Drawing.Size(123, 32);
|
||||||
|
this.rmcrackanLbl.TabIndex = 8;
|
||||||
|
this.rmcrackanLbl.TabStop = true;
|
||||||
|
this.rmcrackanLbl.Text = "rmcrackan";
|
||||||
|
this.rmcrackanLbl.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.rmcrackanLbl_LinkClicked);
|
||||||
|
//
|
||||||
|
// MBucariLbl
|
||||||
|
//
|
||||||
|
this.MBucariLbl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.MBucariLbl.AutoSize = true;
|
||||||
|
this.MBucariLbl.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
|
||||||
|
this.MBucariLbl.Location = new System.Drawing.Point(665, 567);
|
||||||
|
this.MBucariLbl.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||||
|
this.MBucariLbl.Name = "MBucariLbl";
|
||||||
|
this.MBucariLbl.Size = new System.Drawing.Size(101, 32);
|
||||||
|
this.MBucariLbl.TabIndex = 9;
|
||||||
|
this.MBucariLbl.TabStop = true;
|
||||||
|
this.MBucariLbl.Text = "MBucari";
|
||||||
|
this.MBucariLbl.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.MBucariLbl_LinkClicked);
|
||||||
//
|
//
|
||||||
// AboutDialog
|
// AboutDialog
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(13F, 32F);
|
||||||
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
ClientSize = new System.Drawing.Size(434, 561);
|
this.ClientSize = new System.Drawing.Size(806, 1197);
|
||||||
Controls.Add(label2);
|
this.Controls.Add(this.MBucariLbl);
|
||||||
Controls.Add(copyBtn);
|
this.Controls.Add(this.rmcrackanLbl);
|
||||||
Controls.Add(listView1);
|
this.Controls.Add(this.getLibationLbl);
|
||||||
Controls.Add(checkForUpgradeBtn);
|
this.Controls.Add(this.label2);
|
||||||
Controls.Add(releaseNotesLbl);
|
this.Controls.Add(this.copyBtn);
|
||||||
Controls.Add(versionLbl);
|
this.Controls.Add(this.listView1);
|
||||||
Controls.Add(pictureBox1);
|
this.Controls.Add(this.checkForUpgradeBtn);
|
||||||
MinimumSize = new System.Drawing.Size(450, 600);
|
this.Controls.Add(this.releaseNotesLbl);
|
||||||
Name = "AboutDialog";
|
this.Controls.Add(this.pictureBox1);
|
||||||
StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
this.Margin = new System.Windows.Forms.Padding(6);
|
||||||
Text = "About Libation";
|
this.MinimumSize = new System.Drawing.Size(813, 1200);
|
||||||
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
this.Name = "AboutDialog";
|
||||||
ResumeLayout(false);
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
PerformLayout();
|
this.Text = "About Libation";
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private System.Windows.Forms.PictureBox pictureBox1;
|
private System.Windows.Forms.PictureBox pictureBox1;
|
||||||
private System.Windows.Forms.Label versionLbl;
|
|
||||||
private System.Windows.Forms.LinkLabel releaseNotesLbl;
|
private System.Windows.Forms.LinkLabel releaseNotesLbl;
|
||||||
private System.Windows.Forms.Button checkForUpgradeBtn;
|
private System.Windows.Forms.Button checkForUpgradeBtn;
|
||||||
private System.Windows.Forms.ListView listView1;
|
private System.Windows.Forms.ListView listView1;
|
||||||
@ -157,5 +204,8 @@
|
|||||||
private System.Windows.Forms.Label label2;
|
private System.Windows.Forms.Label label2;
|
||||||
private System.Windows.Forms.ColumnHeader columnHeader1;
|
private System.Windows.Forms.ColumnHeader columnHeader1;
|
||||||
private System.Windows.Forms.ColumnHeader columnHeader2;
|
private System.Windows.Forms.ColumnHeader columnHeader2;
|
||||||
|
private System.Windows.Forms.LinkLabel getLibationLbl;
|
||||||
|
private System.Windows.Forms.LinkLabel rmcrackanLbl;
|
||||||
|
private System.Windows.Forms.LinkLabel MBucariLbl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -18,7 +18,13 @@ namespace LibationWinForms.Dialogs
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
this.SetLibationIcon();
|
this.SetLibationIcon();
|
||||||
versionLbl.Text = $"Libation {AppScaffolding.LibationScaffolding.Variety} v{AppScaffolding.LibationScaffolding.BuildVersion}";
|
releaseNotesLbl.Text = $"Libation {AppScaffolding.LibationScaffolding.Variety} v{AppScaffolding.LibationScaffolding.BuildVersion}";
|
||||||
|
var toolTip = new ToolTip();
|
||||||
|
|
||||||
|
toolTip.SetToolTip(releaseNotesLbl, "View Release Notes");
|
||||||
|
toolTip.SetToolTip(rmcrackanLbl, "View rmcrackan's GitHub profile");
|
||||||
|
toolTip.SetToolTip(MBucariLbl, "View MBucari's GitHub profile");
|
||||||
|
|
||||||
var asmNames = AppDomain.CurrentDomain.GetAssemblies().Select(a => new AssemblyName(a.FullName)).Where(a => a.Version.Major + a.Version.Minor + a.Version.Build + a.Version.Revision > 0).OrderBy(a => a.Name).ToList();
|
var asmNames = AppDomain.CurrentDomain.GetAssemblies().Select(a => new AssemblyName(a.FullName)).Where(a => a.Version.Major + a.Version.Minor + a.Version.Build + a.Version.Revision > 0).OrderBy(a => a.Name).ToList();
|
||||||
|
|
||||||
listView1.Items.AddRange(asmNames.Select(a => new ListViewItem(new string[] { a.Name, a.Version.ToString() })).ToArray());
|
listView1.Items.AddRange(asmNames.Select(a => new ListViewItem(new string[] { a.Name, a.Version.ToString() })).ToArray());
|
||||||
@ -62,5 +68,12 @@ namespace LibationWinForms.Dialogs
|
|||||||
var text = string.Join(Environment.NewLine, listView1.Items.OfType<ListViewItem>().Select(i => $"{i.SubItems[0].Text}\t{i.SubItems[1].Text}"));
|
var text = string.Join(Environment.NewLine, listView1.Items.OfType<ListViewItem>().Select(i => $"{i.SubItems[0].Text}\t{i.SubItems[1].Text}"));
|
||||||
Clipboard.SetDataObject(text, false, 5, 150);
|
Clipboard.SetDataObject(text, false, 5, 150);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void getLibationLbl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
=> Dinah.Core.Go.To.Url(AppScaffolding.LibationScaffolding.WebsiteUrl);
|
||||||
|
|
||||||
|
private void rmcrackanLbl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) => Dinah.Core.Go.To.Url($"ht" + "tps://github.com/rmcrackan");
|
||||||
|
|
||||||
|
private void MBucariLbl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) => Dinah.Core.Go.To.Url($"ht" + "tps://github.com/MBucari");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user