Remove assemblies add acknowledgements to About
This commit is contained in:
parent
2248d7b24e
commit
826e53c9cb
5 changed files with 324 additions and 218 deletions
|
|
@ -1,12 +1,5 @@
|
|||
using LibationUiBase;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
|
@ -19,17 +12,9 @@ namespace LibationWinForms.Dialogs
|
|||
InitializeComponent();
|
||||
this.SetLibationIcon();
|
||||
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();
|
||||
|
||||
listView1.Items.AddRange(asmNames.Select(a => new ListViewItem(new string[] { a.Name, a.Version.ToString() })).ToArray());
|
||||
listView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
|
||||
Resize += (_, _) => listView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
|
||||
}
|
||||
|
||||
private void releaseNotesLbl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
|
|
@ -63,17 +48,15 @@ namespace LibationWinForms.Dialogs
|
|||
}
|
||||
}
|
||||
|
||||
private void copyBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
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");
|
||||
private void Link_GithubUser(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
if (sender is LinkLabel lbl)
|
||||
{
|
||||
Dinah.Core.Go.To.Url($"ht" + $"tps://github.com/{lbl.Text.Replace('.', '-')}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue