Skip to content

Commit

Permalink
Finished removing Grub4DOS and Syslinux, fixed Chinese form layout, a…
Browse files Browse the repository at this point in the history
…dded logo
  • Loading branch information
zdimension committed Feb 24, 2017
1 parent 47781ea commit 1c64e17
Show file tree
Hide file tree
Showing 44 changed files with 2,502 additions and 3,517 deletions.
47 changes: 35 additions & 12 deletions SharpBoot/About.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion SharpBoot/About.cs
Expand Up @@ -2,7 +2,10 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Media;
using System.Reflection;
using System.Windows.Forms;
using SharpBoot.Properties;

Expand All @@ -16,7 +19,7 @@ public partial class About : Form
public About()
{
InitializeComponent();
richTextBox1.Text = richTextBox1.Text.Insert(9, " " + Program.GetVersion())
label1.Text = label1.Text.Insert(9, " " + Program.GetVersion())
.Replace("{0}", ISOInfo.AppDBVersion.ToString())
.Replace("{1}", Strings.SharpBootUsesSoft);
if (Program.IsWin) Utils.SetWindowTheme(lvTranslators.Handle, "explorer", null);
Expand All @@ -25,6 +28,11 @@ public About()
rtbMyWebsite.DeselectAll();
Text = Strings.AboutSharpBoot;
btnOK.Text = Strings.OK;
pbLogo.Image = new Icon(Resources.logo, 48, 48).ToBitmap();
FormClosing += (sender, args) =>
{
mp.Stop();
};
}

private void lvTranslators_DoubleClick(object sender, EventArgs e)
Expand All @@ -44,5 +52,13 @@ private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e)
if (e.LinkText != "")
Process.Start(e.LinkText);
}

private SoundPlayer mp = new SoundPlayer(Resources.sharpboot2); // shhhh...

private void pbLogo_Click(object sender, EventArgs e)
{
mp.Stop();
mp.Play(); // don't tell tumblr
}
}
}

0 comments on commit 1c64e17

Please sign in to comment.