diff --git a/GreenshotExternalCommandPlugin/ExternalCommandDestination.cs b/GreenshotExternalCommandPlugin/ExternalCommandDestination.cs index 2c220d375..9cbe013ce 100644 --- a/GreenshotExternalCommandPlugin/ExternalCommandDestination.cs +++ b/GreenshotExternalCommandPlugin/ExternalCommandDestination.cs @@ -86,7 +86,7 @@ namespace ExternalCommand { commandThread.Name = "Running " + presetCommand; commandThread.IsBackground = true; commandThread.Start(); - surface.SendMessageEvent(this, SurfaceMessageTyp.Info, host.CoreLanguage.GetFormattedString("exported_to", Description)); + surface.SendMessageEvent(this, SurfaceMessageTyp.Info, Language.GetFormattedString("exported_to", Description)); surface.Modified = false; } return true; diff --git a/GreenshotExternalCommandPlugin/GreenshotExternalCommandPlugin.csproj b/GreenshotExternalCommandPlugin/GreenshotExternalCommandPlugin.csproj index f05f2bcb5..79fc181fb 100644 --- a/GreenshotExternalCommandPlugin/GreenshotExternalCommandPlugin.csproj +++ b/GreenshotExternalCommandPlugin/GreenshotExternalCommandPlugin.csproj @@ -1,5 +1,5 @@  - + {47F23C86-604E-4CC3-8767-B3D4088F30BB} Debug @@ -15,6 +15,26 @@ 4 false OnBuildSuccess + + + 3.5 + + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true bin\Debug\ @@ -54,15 +74,22 @@ + + Form + - + + Form + SettingsForm.cs - + + Form + SettingsFormDetail.cs @@ -83,8 +110,27 @@ copy "$(ProjectDir)bin\$(Configuration)\$(TargetFileName)" "$(SolutionDir)bin\$( SettingsForm.Designer.cs - - SettingsFormDetail.cs - + + + + False + Microsoft .NET Framework 4 %28x86 und x64%29 + true + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + false + + + False + Windows Installer 3.1 + true + \ No newline at end of file diff --git a/GreenshotExternalCommandPlugin/SettingsForm.Designer.cs b/GreenshotExternalCommandPlugin/SettingsForm.Designer.cs index 25e54a3ec..a827d710d 100644 --- a/GreenshotExternalCommandPlugin/SettingsForm.Designer.cs +++ b/GreenshotExternalCommandPlugin/SettingsForm.Designer.cs @@ -47,13 +47,13 @@ namespace ExternalCommand { private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingsForm)); - this.buttonCancel = new System.Windows.Forms.Button(); - this.buttonOk = new System.Windows.Forms.Button(); + this.buttonCancel = new GreenshotPlugin.Controls.GreenshotButton(); + this.buttonOk = new GreenshotPlugin.Controls.GreenshotButton(); this.listView1 = new System.Windows.Forms.ListView(); this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); - this.button1 = new System.Windows.Forms.Button(); - this.button2 = new System.Windows.Forms.Button(); - this.button4 = new System.Windows.Forms.Button(); + this.button1 = new GreenshotPlugin.Controls.GreenshotButton(); + this.button2 = new GreenshotPlugin.Controls.GreenshotButton(); + this.button4 = new GreenshotPlugin.Controls.GreenshotButton(); this.SuspendLayout(); // // buttonCancel @@ -142,18 +142,16 @@ namespace ExternalCommand { this.Controls.Add(this.listView1); this.Controls.Add(this.buttonOk); this.Controls.Add(this.buttonCancel); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "SettingsForm"; - this.Text = "Command Editor"; this.ResumeLayout(false); } - private System.Windows.Forms.Button button4; - private System.Windows.Forms.Button button2; - private System.Windows.Forms.Button button1; + private GreenshotPlugin.Controls.GreenshotButton button4; + private GreenshotPlugin.Controls.GreenshotButton button2; + private GreenshotPlugin.Controls.GreenshotButton button1; private System.Windows.Forms.ColumnHeader columnHeader1; private System.Windows.Forms.ListView listView1; - private System.Windows.Forms.Button buttonOk; - private System.Windows.Forms.Button buttonCancel; + private GreenshotPlugin.Controls.GreenshotButton buttonOk; + private GreenshotPlugin.Controls.GreenshotButton buttonCancel; } } diff --git a/GreenshotExternalCommandPlugin/SettingsForm.cs b/GreenshotExternalCommandPlugin/SettingsForm.cs index d7138e99f..9ddbd68f7 100644 --- a/GreenshotExternalCommandPlugin/SettingsForm.cs +++ b/GreenshotExternalCommandPlugin/SettingsForm.cs @@ -24,14 +24,13 @@ using System.IO; using System.Windows.Forms; using Greenshot.IniFile; -using GreenshotExternalCommandPlugin; using GreenshotPlugin.Core; namespace ExternalCommand { /// /// Description of SettingsForm. /// - public partial class SettingsForm : Form { + public partial class SettingsForm : ExternalCommandForm { private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(SettingsForm)); private static ExternalCommandConfiguration config = IniConfig.GetIniSection(); @@ -40,6 +39,7 @@ namespace ExternalCommand { // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); + this.Icon = GreenshotPlugin.Core.GreenshotResources.getGreenshotIcon(); UpdateView(); } diff --git a/GreenshotExternalCommandPlugin/SettingsFormDetail.Designer.cs b/GreenshotExternalCommandPlugin/SettingsFormDetail.Designer.cs index 5f4927be7..cf62386da 100644 --- a/GreenshotExternalCommandPlugin/SettingsFormDetail.Designer.cs +++ b/GreenshotExternalCommandPlugin/SettingsFormDetail.Designer.cs @@ -6,7 +6,7 @@ * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ -namespace GreenshotExternalCommandPlugin +namespace ExternalCommand { partial class SettingsFormDetail { diff --git a/GreenshotExternalCommandPlugin/SettingsFormDetail.cs b/GreenshotExternalCommandPlugin/SettingsFormDetail.cs index d3764d52a..b5007b8bb 100644 --- a/GreenshotExternalCommandPlugin/SettingsFormDetail.cs +++ b/GreenshotExternalCommandPlugin/SettingsFormDetail.cs @@ -11,16 +11,13 @@ using System.Drawing; using System.IO; using System.Windows.Forms; -using ExternalCommand; using Greenshot.IniFile; -namespace GreenshotExternalCommandPlugin -{ +namespace ExternalCommand { /// /// Description of SettingsFormDetail. /// - public partial class SettingsFormDetail : Form - { + public partial class SettingsFormDetail : ExternalCommandForm { private string commando; private int commandIndex; diff --git a/GreenshotExternalCommandPlugin/SettingsFormDetail.resx b/GreenshotExternalCommandPlugin/SettingsFormDetail.resx deleted file mode 100644 index 5ea0895e3..000000000 --- a/GreenshotExternalCommandPlugin/SettingsFormDetail.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file