mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Changed EditorForm to use language binding... long live search & replace...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1834 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
00819deecd
commit
71f44023c2
11 changed files with 306 additions and 350 deletions
|
@ -21,6 +21,7 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
using GreenshotPlugin.Controls;
|
||||
|
||||
namespace Greenshot.Controls {
|
||||
/// <summary>
|
||||
|
@ -28,10 +29,16 @@ namespace Greenshot.Controls {
|
|||
/// Also, when a DropDownItem is selected, the DropDownButton adops its Tag and Image.
|
||||
/// The selected tag can be accessed via SelectedTag property.
|
||||
/// </summary>
|
||||
public class BindableToolStripDropDownButton : ToolStripDropDownButton, INotifyPropertyChanged {
|
||||
public class BindableToolStripDropDownButton : ToolStripDropDownButton, INotifyPropertyChanged, IGreenshotLanguageBindable {
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
|
||||
[Category("Greenshot"), DefaultValue(null), Description("Specifies key of the language file to use when displaying the text.")]
|
||||
public string LanguageKey {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public BindableToolStripDropDownButton() {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue