Added social button actions

This commit is contained in:
Jaex 2019-09-24 16:44:41 +03:00
parent c8985692ac
commit 44f80d4f3e
5 changed files with 496 additions and 334 deletions

View file

@ -28,8 +28,8 @@ namespace ShareX.HelpersLib
public static class Links
{
public const string URL_WEBSITE = "https://getsharex.com";
public const string URL_PROJECT = "https://github.com/ShareX/ShareX";
public const string URL_ISSUES = URL_PROJECT + "/issues?q=is%3Aissue";
public const string URL_GITHUB = "https://github.com/ShareX/ShareX";
public const string URL_ISSUES = URL_GITHUB + "/issues?q=is%3Aissue";
public const string URL_CALLBACK = URL_WEBSITE + "/callback/";
public const string URL_CHANGELOG = URL_WEBSITE + "/changelog";
public const string URL_DONATE = URL_WEBSITE + "/donate";

View file

@ -75,7 +75,7 @@ public AboutForm()
lblMike.Text = "McoreD (Michael Delpach)";
rtbShareXInfo.Text = $@"{Resources.AboutForm_AboutForm_Website}: {Links.URL_WEBSITE}
{Resources.AboutForm_AboutForm_Project_page}: {Links.URL_PROJECT}
{Resources.AboutForm_AboutForm_Project_page}: {Links.URL_GITHUB}
{Resources.AboutForm_AboutForm_Changelog}: {Links.URL_CHANGELOG}";
rtbCredits.Text = $@"{Resources.AboutForm_AboutForm_Contributors}:

View file

@ -293,6 +293,7 @@ private void InitializeComponent()
this.tsbTwitter = new System.Windows.Forms.ToolStripButton();
this.tsbDiscord = new System.Windows.Forms.ToolStripButton();
this.tsbGitHub = new System.Windows.Forms.ToolStripButton();
this.tssMain3 = new System.Windows.Forms.ToolStripSeparator();
((System.ComponentModel.ISupportInitialize)(this.scMain)).BeginInit();
this.scMain.Panel1.SuspendLayout();
this.scMain.Panel2.SuspendLayout();
@ -430,7 +431,8 @@ private void InitializeComponent()
this.tsbNews,
this.tsddbDebug,
this.tsbDonate,
this.tsbAbout});
this.tsbAbout,
this.tssMain3});
this.tsMain.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.VerticalStackWithOverflow;
this.tsMain.Name = "tsMain";
this.tsMain.ShowItemToolTips = false;
@ -2309,7 +2311,6 @@ private void InitializeComponent()
this.tsbTwitter,
this.tsbDiscord,
this.tsbGitHub});
this.tsSocialButtons.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
this.tsSocialButtons.Name = "tsSocialButtons";
//
// tsbPatreon
@ -2318,6 +2319,8 @@ private void InitializeComponent()
this.tsbPatreon.Image = global::ShareX.Properties.Resources.Patreon_16x16;
resources.ApplyResources(this.tsbPatreon, "tsbPatreon");
this.tsbPatreon.Name = "tsbPatreon";
this.tsbPatreon.Padding = new System.Windows.Forms.Padding(2);
this.tsbPatreon.Click += new System.EventHandler(this.TsbPatreon_Click);
//
// tsbBitcoin
//
@ -2325,6 +2328,8 @@ private void InitializeComponent()
resources.ApplyResources(this.tsbBitcoin, "tsbBitcoin");
this.tsbBitcoin.Margin = new System.Windows.Forms.Padding(3, 1, 0, 2);
this.tsbBitcoin.Name = "tsbBitcoin";
this.tsbBitcoin.Padding = new System.Windows.Forms.Padding(2);
this.tsbBitcoin.Click += new System.EventHandler(this.TsbBitcoin_Click);
//
// tsbTwitter
//
@ -2332,6 +2337,8 @@ private void InitializeComponent()
resources.ApplyResources(this.tsbTwitter, "tsbTwitter");
this.tsbTwitter.Margin = new System.Windows.Forms.Padding(3, 1, 0, 2);
this.tsbTwitter.Name = "tsbTwitter";
this.tsbTwitter.Padding = new System.Windows.Forms.Padding(2);
this.tsbTwitter.Click += new System.EventHandler(this.TsbTwitter_Click);
//
// tsbDiscord
//
@ -2340,6 +2347,8 @@ private void InitializeComponent()
resources.ApplyResources(this.tsbDiscord, "tsbDiscord");
this.tsbDiscord.Margin = new System.Windows.Forms.Padding(3, 1, 0, 2);
this.tsbDiscord.Name = "tsbDiscord";
this.tsbDiscord.Padding = new System.Windows.Forms.Padding(2);
this.tsbDiscord.Click += new System.EventHandler(this.TsbDiscord_Click);
//
// tsbGitHub
//
@ -2348,6 +2357,13 @@ private void InitializeComponent()
resources.ApplyResources(this.tsbGitHub, "tsbGitHub");
this.tsbGitHub.Margin = new System.Windows.Forms.Padding(3, 1, 0, 2);
this.tsbGitHub.Name = "tsbGitHub";
this.tsbGitHub.Padding = new System.Windows.Forms.Padding(2);
this.tsbGitHub.Click += new System.EventHandler(this.TsbGitHub_Click);
//
// tssMain3
//
this.tssMain3.Name = "tssMain3";
resources.ApplyResources(this.tssMain3, "tssMain3");
//
// MainForm
//
@ -2662,5 +2678,6 @@ private void InitializeComponent()
private System.Windows.Forms.ToolStripButton tsbTwitter;
private System.Windows.Forms.ToolStripButton tsbDiscord;
private System.Windows.Forms.ToolStripButton tsbGitHub;
private System.Windows.Forms.ToolStripSeparator tssMain3;
}
}

View file

@ -2005,6 +2005,31 @@ private void tsbAbout_Click(object sender, EventArgs e)
}
}
private void TsbPatreon_Click(object sender, EventArgs e)
{
URLHelpers.OpenURL(Links.URL_DONATE);
}
private void TsbBitcoin_Click(object sender, EventArgs e)
{
URLHelpers.OpenURL(Links.URL_DONATE);
}
private void TsbTwitter_Click(object sender, EventArgs e)
{
URLHelpers.OpenURL(Links.URL_TWITTER);
}
private void TsbDiscord_Click(object sender, EventArgs e)
{
URLHelpers.OpenURL(Links.URL_DISCORD);
}
private void TsbGitHub_Click(object sender, EventArgs e)
{
URLHelpers.OpenURL(Links.URL_GITHUB);
}
#endregion Menu events
#region Tray events

File diff suppressed because it is too large Load diff