Added donation button to the configuration form, just in case ;-)
This commit is contained in:
parent
7638aa0849
commit
a27b507c60
@ -37,6 +37,11 @@ namespace Outlook2013TodoAddIn
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public const string FollowUp = "Follow up";
|
public const string FollowUp = "Follow up";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// URL to paypal donation site, in case someone want's to buy me a beer ;-)
|
||||||
|
/// </summary>
|
||||||
|
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"
|
#endregion "Variables"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -28,6 +28,7 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
this.chkMailAlerts = new System.Windows.Forms.CheckBox();
|
this.chkMailAlerts = new System.Windows.Forms.CheckBox();
|
||||||
this.lblRangeDays = new System.Windows.Forms.Label();
|
this.lblRangeDays = new System.Windows.Forms.Label();
|
||||||
this.numRangeDays = new System.Windows.Forms.NumericUpDown();
|
this.numRangeDays = new System.Windows.Forms.NumericUpDown();
|
||||||
@ -42,7 +43,10 @@
|
|||||||
this.lblFirstDayOfWeek = new System.Windows.Forms.Label();
|
this.lblFirstDayOfWeek = new System.Windows.Forms.Label();
|
||||||
this.chkShowDayNames = new System.Windows.Forms.CheckBox();
|
this.chkShowDayNames = new System.Windows.Forms.CheckBox();
|
||||||
this.chkShowWeekNumbers = 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.numRangeDays)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pctBoxPayPal)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// chkMailAlerts
|
// chkMailAlerts
|
||||||
@ -58,7 +62,7 @@
|
|||||||
// lblRangeDays
|
// lblRangeDays
|
||||||
//
|
//
|
||||||
this.lblRangeDays.AutoSize = true;
|
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.Name = "lblRangeDays";
|
||||||
this.lblRangeDays.Size = new System.Drawing.Size(44, 17);
|
this.lblRangeDays.Size = new System.Drawing.Size(44, 17);
|
||||||
this.lblRangeDays.TabIndex = 7;
|
this.lblRangeDays.TabIndex = 7;
|
||||||
@ -66,7 +70,7 @@
|
|||||||
//
|
//
|
||||||
// numRangeDays
|
// 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[] {
|
this.numRangeDays.Maximum = new decimal(new int[] {
|
||||||
30,
|
30,
|
||||||
0,
|
0,
|
||||||
@ -193,6 +197,20 @@
|
|||||||
this.chkShowWeekNumbers.Text = "Show Week Numbers";
|
this.chkShowWeekNumbers.Text = "Show Week Numbers";
|
||||||
this.chkShowWeekNumbers.UseVisualStyleBackColor = true;
|
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
|
// FormConfiguration
|
||||||
//
|
//
|
||||||
this.AcceptButton = this.btnOK;
|
this.AcceptButton = this.btnOK;
|
||||||
@ -200,6 +218,7 @@
|
|||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.CancelButton = this.btnCancel;
|
this.CancelButton = this.btnCancel;
|
||||||
this.ClientSize = new System.Drawing.Size(282, 482);
|
this.ClientSize = new System.Drawing.Size(282, 482);
|
||||||
|
this.Controls.Add(this.pctBoxPayPal);
|
||||||
this.Controls.Add(this.chkShowWeekNumbers);
|
this.Controls.Add(this.chkShowWeekNumbers);
|
||||||
this.Controls.Add(this.chkShowDayNames);
|
this.Controls.Add(this.chkShowDayNames);
|
||||||
this.Controls.Add(this.lblFirstDayOfWeek);
|
this.Controls.Add(this.lblFirstDayOfWeek);
|
||||||
@ -223,6 +242,7 @@
|
|||||||
this.Text = "Configuration";
|
this.Text = "Configuration";
|
||||||
this.Load += new System.EventHandler(this.FormConfiguration_Load);
|
this.Load += new System.EventHandler(this.FormConfiguration_Load);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.numRangeDays)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.numRangeDays)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pctBoxPayPal)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
@ -244,5 +264,7 @@
|
|||||||
private System.Windows.Forms.Label lblFirstDayOfWeek;
|
private System.Windows.Forms.Label lblFirstDayOfWeek;
|
||||||
private System.Windows.Forms.CheckBox chkShowDayNames;
|
private System.Windows.Forms.CheckBox chkShowDayNames;
|
||||||
private System.Windows.Forms.CheckBox chkShowWeekNumbers;
|
private System.Windows.Forms.CheckBox chkShowWeekNumbers;
|
||||||
|
private System.Windows.Forms.PictureBox pctBoxPayPal;
|
||||||
|
private System.Windows.Forms.ToolTip toolTip1;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Collections.Specialized;
|
using System.Collections.Specialized;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
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());
|
Properties.Settings.Default.FirstDayOfWeek = (System.DayOfWeek)Enum.Parse(typeof(System.DayOfWeek), this.cboFirstDayOfWeek.SelectedValue.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Open the default web browser with a link to PayPal in case someone wants to buy me a beer
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender">Sender</param>
|
||||||
|
/// <param name="e">EventArgs</param>
|
||||||
|
private void pictureBox1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start(Constants.DonateUrl);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion "Methods"
|
#endregion "Methods"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -117,4 +117,7 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
|
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
</root>
|
</root>
|
BIN
Outlook2013TodoAddIn/Images/buy-me-a-beer-small.png
Normal file
BIN
Outlook2013TodoAddIn/Images/buy-me-a-beer-small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
@ -288,6 +288,7 @@
|
|||||||
<None Include="Images\Envelope.png" />
|
<None Include="Images\Envelope.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Content Include="Images\buy-me-a-beer-small.png" />
|
||||||
<Content Include="Images\gear.png" />
|
<Content Include="Images\gear.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// 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
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
@ -60,6 +60,16 @@ namespace Outlook2013TodoAddIn.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
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));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -118,6 +118,9 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
|
<data name="buy_me_a_beer_small" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\images\buy-me-a-beer-small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
<data name="Delete" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Delete" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Images\Delete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Images\Delete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
Loading…
Reference in New Issue
Block a user