From a27b507c60391ac03f8213fb3ea0ab9ed9e17e10 Mon Sep 17 00:00:00 2001 From: gamosoft_cp Date: Fri, 24 Oct 2014 19:07:45 +0000 Subject: [PATCH] Added donation button to the configuration form, just in case ;-) --- Outlook2013TodoAddIn/Constants.cs | 5 ++++ .../Forms/FormConfiguration.Designer.cs | 26 ++++++++++++++++-- .../Forms/FormConfiguration.cs | 11 ++++++++ .../Forms/FormConfiguration.resx | 3 ++ .../Images/buy-me-a-beer-small.png | Bin 0 -> 4202 bytes .../Outlook2013TodoAddIn.csproj | 1 + .../Properties/Resources.Designer.cs | 12 +++++++- .../Properties/Resources.resx | 3 ++ 8 files changed, 58 insertions(+), 3 deletions(-) create mode 100644 Outlook2013TodoAddIn/Images/buy-me-a-beer-small.png diff --git a/Outlook2013TodoAddIn/Constants.cs b/Outlook2013TodoAddIn/Constants.cs index 6c164f3..a140076 100644 --- a/Outlook2013TodoAddIn/Constants.cs +++ b/Outlook2013TodoAddIn/Constants.cs @@ -37,6 +37,11 @@ namespace Outlook2013TodoAddIn /// public const string FollowUp = "Follow up"; + /// + /// URL to paypal donation site, in case someone want's to buy me a beer ;-) + /// + public const string DonateUrl = "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZXYEC3PM6K7TQ&lc=US&item_name=Outlook2103AddInBuyBeer¤cy_code=USD&bn=PP%2dDonationsBF%3amybutton%2epng%3aNonHosted"; + #endregion "Variables" } } \ No newline at end of file diff --git a/Outlook2013TodoAddIn/Forms/FormConfiguration.Designer.cs b/Outlook2013TodoAddIn/Forms/FormConfiguration.Designer.cs index b18faff..474a01c 100644 --- a/Outlook2013TodoAddIn/Forms/FormConfiguration.Designer.cs +++ b/Outlook2013TodoAddIn/Forms/FormConfiguration.Designer.cs @@ -28,6 +28,7 @@ /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); this.chkMailAlerts = new System.Windows.Forms.CheckBox(); this.lblRangeDays = new System.Windows.Forms.Label(); this.numRangeDays = new System.Windows.Forms.NumericUpDown(); @@ -42,7 +43,10 @@ this.lblFirstDayOfWeek = new System.Windows.Forms.Label(); this.chkShowDayNames = new System.Windows.Forms.CheckBox(); this.chkShowWeekNumbers = new System.Windows.Forms.CheckBox(); + this.pctBoxPayPal = new System.Windows.Forms.PictureBox(); + this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); ((System.ComponentModel.ISupportInitialize)(this.numRangeDays)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pctBoxPayPal)).BeginInit(); this.SuspendLayout(); // // chkMailAlerts @@ -58,7 +62,7 @@ // lblRangeDays // this.lblRangeDays.AutoSize = true; - this.lblRangeDays.Location = new System.Drawing.Point(55, 29); + this.lblRangeDays.Location = new System.Drawing.Point(28, 29); this.lblRangeDays.Name = "lblRangeDays"; this.lblRangeDays.Size = new System.Drawing.Size(44, 17); this.lblRangeDays.TabIndex = 7; @@ -66,7 +70,7 @@ // // numRangeDays // - this.numRangeDays.Location = new System.Drawing.Point(115, 27); + this.numRangeDays.Location = new System.Drawing.Point(88, 27); this.numRangeDays.Maximum = new decimal(new int[] { 30, 0, @@ -193,6 +197,20 @@ this.chkShowWeekNumbers.Text = "Show Week Numbers"; this.chkShowWeekNumbers.UseVisualStyleBackColor = true; // + // pctBoxPayPal + // + this.pctBoxPayPal.Cursor = System.Windows.Forms.Cursors.Hand; + this.pctBoxPayPal.Image = global::Outlook2013TodoAddIn.Properties.Resources.buy_me_a_beer_small; + this.pctBoxPayPal.Location = new System.Drawing.Point(190, 21); + this.pctBoxPayPal.Name = "pctBoxPayPal"; + this.pctBoxPayPal.Size = new System.Drawing.Size(83, 30); + this.pctBoxPayPal.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pctBoxPayPal.TabIndex = 21; + this.pctBoxPayPal.TabStop = false; + this.toolTip1.SetToolTip(this.pctBoxPayPal, "If you find it useful and have spare time you can drop me a line saying how you l" + + "ike the tool and such, or better yet, you can buy me a beer if you wish. ;-) "); + this.pctBoxPayPal.Click += new System.EventHandler(this.pictureBox1_Click); + // // FormConfiguration // this.AcceptButton = this.btnOK; @@ -200,6 +218,7 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(282, 482); + this.Controls.Add(this.pctBoxPayPal); this.Controls.Add(this.chkShowWeekNumbers); this.Controls.Add(this.chkShowDayNames); this.Controls.Add(this.lblFirstDayOfWeek); @@ -223,6 +242,7 @@ this.Text = "Configuration"; this.Load += new System.EventHandler(this.FormConfiguration_Load); ((System.ComponentModel.ISupportInitialize)(this.numRangeDays)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pctBoxPayPal)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -244,5 +264,7 @@ private System.Windows.Forms.Label lblFirstDayOfWeek; private System.Windows.Forms.CheckBox chkShowDayNames; private System.Windows.Forms.CheckBox chkShowWeekNumbers; + private System.Windows.Forms.PictureBox pctBoxPayPal; + private System.Windows.Forms.ToolTip toolTip1; } } \ No newline at end of file diff --git a/Outlook2013TodoAddIn/Forms/FormConfiguration.cs b/Outlook2013TodoAddIn/Forms/FormConfiguration.cs index 6eeb7a1..579ffcf 100644 --- a/Outlook2013TodoAddIn/Forms/FormConfiguration.cs +++ b/Outlook2013TodoAddIn/Forms/FormConfiguration.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; using System.Data; +using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; @@ -173,6 +174,16 @@ namespace Outlook2013TodoAddIn.Forms Properties.Settings.Default.FirstDayOfWeek = (System.DayOfWeek)Enum.Parse(typeof(System.DayOfWeek), this.cboFirstDayOfWeek.SelectedValue.ToString()); } + /// + /// Open the default web browser with a link to PayPal in case someone wants to buy me a beer + /// + /// Sender + /// EventArgs + private void pictureBox1_Click(object sender, EventArgs e) + { + Process.Start(Constants.DonateUrl); + } + #endregion "Methods" } } \ No newline at end of file diff --git a/Outlook2013TodoAddIn/Forms/FormConfiguration.resx b/Outlook2013TodoAddIn/Forms/FormConfiguration.resx index 29dcb1b..65a871b 100644 --- a/Outlook2013TodoAddIn/Forms/FormConfiguration.resx +++ b/Outlook2013TodoAddIn/Forms/FormConfiguration.resx @@ -117,4 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + \ No newline at end of file diff --git a/Outlook2013TodoAddIn/Images/buy-me-a-beer-small.png b/Outlook2013TodoAddIn/Images/buy-me-a-beer-small.png new file mode 100644 index 0000000000000000000000000000000000000000..8081496a4a455750637fca5e1333173e51228e3c GIT binary patch literal 4202 zcmV-w5S8zVP)z@;j(q!3lK=n!AY({UO#lFTB>(_`g8%^e{{R4h=>PzA zFaQARU;qF*m;eA5Z<1fdMgRa0;7LS5RCwC#nt701S9QjJ_r9&SndzRMRWqYyBwNx5 zNtWbgWLpLs3^tSrj=_lo7*na3q!L$vP^3)CR2-->i3&q7Bt-&_u`LYP7-JhR7-Ed& zRf{EA`!(j(|I_y( z4C68xv+e}*a->$}oiTGr5Eblw_uT%Cop*ojIm$CX)Mvg?cK#~a`Tk8@@VPd$D1dct zHq<%JMf?w}=l8Lt&R|>pesdJmQQ7qs>jyUgLtm{upk{$7w8$4la&a488LH#64JcK+ z6la)>08N4rr_NU?2>dgzXVxOrS!~YuPF>FaGNm9;;SFjIEEVBAZ|CiGqWLjj(iqGG_n}G=j zfx=S|H6)D*gG-ks`Q#PtBs2l8KYLTA))9^I^1%Wde}0Upsd4Mo^EfZ9(UB71`)|XR zscRhq9h9#FOMnt!1J0>n1|9?s_|?A0iep=xnXSG&K(NO|a|0 z2+zHA1pI)HePl)GHU5k_Y6=_|91nB@qzpIIt}#P5!8F7B4U_#tC0;+6LkK~-&ZIG6 zFqo-ubhyMz`!bAAy4-Q&e6R!rwHJU4!1us*Knh;in`P_aNqV{xteRg(qgDjRnfA=L z8-W+n040ECpamELvZr~b`!=3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n/Outlook2013TodoAddIn.csproj +++ b/Outlook2013TodoAddIn/Outlook2013TodoAddIn.csproj @@ -288,6 +288,7 @@ + diff --git a/Outlook2013TodoAddIn/Properties/Resources.Designer.cs b/Outlook2013TodoAddIn/Properties/Resources.Designer.cs index 3722d3c..ca88ddb 100644 --- a/Outlook2013TodoAddIn/Properties/Resources.Designer.cs +++ b/Outlook2013TodoAddIn/Properties/Resources.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.18046 +// Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -60,6 +60,16 @@ namespace Outlook2013TodoAddIn.Properties { } } + ///

+ /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap buy_me_a_beer_small { + get { + object obj = ResourceManager.GetObject("buy_me_a_beer_small", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/Outlook2013TodoAddIn/Properties/Resources.resx b/Outlook2013TodoAddIn/Properties/Resources.resx index 383bc7f..048faf8 100644 --- a/Outlook2013TodoAddIn/Properties/Resources.resx +++ b/Outlook2013TodoAddIn/Properties/Resources.resx @@ -118,6 +118,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\images\buy-me-a-beer-small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Images\Delete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a