mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 10:47:02 -07:00
Making the initial stuff working, getting an installer, when running from VS.
This commit is contained in:
parent
a63bf734d4
commit
57e2044839
1023 changed files with 20896 additions and 19456 deletions
|
@ -5,17 +5,7 @@ namespace TranslationByMarkupExtension {
|
|||
///
|
||||
/// </summary>
|
||||
public class LanguageXMLTranslationProvider : ITranslationProvider {
|
||||
#region Private Members
|
||||
|
||||
#endregion
|
||||
|
||||
#region Construction
|
||||
|
||||
#endregion
|
||||
|
||||
#region ITranslationProvider Members
|
||||
|
||||
/// <summary>
|
||||
/// <summary>
|
||||
/// See <see cref="ITranslationProvider.Translate" />
|
||||
/// </summary>
|
||||
public object Translate(string key) {
|
||||
|
@ -24,7 +14,5 @@ namespace TranslationByMarkupExtension {
|
|||
}
|
||||
return key;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,14 +10,8 @@ namespace TranslationByMarkupExtension
|
|||
/// </summary>
|
||||
public class TranslateExtension : MarkupExtension
|
||||
{
|
||||
#region Private Members
|
||||
|
||||
private string _key;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Construction
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TranslateExtension"/> class.
|
||||
/// </summary>
|
||||
|
@ -27,8 +21,6 @@ namespace TranslationByMarkupExtension
|
|||
_key = key;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
[ConstructorArgument("key")]
|
||||
public string Key
|
||||
{
|
||||
|
|
|
@ -4,13 +4,9 @@ using System.Windows;
|
|||
|
||||
namespace TranslationByMarkupExtension {
|
||||
public class TranslationData : IWeakEventListener, INotifyPropertyChanged {
|
||||
#region Private Members
|
||||
private readonly string _key;
|
||||
|
||||
private readonly string _key;
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TranslationData"/> class.
|
||||
/// </summary>
|
||||
/// <param name="key">The key.</param>
|
||||
|
@ -29,9 +25,7 @@ namespace TranslationByMarkupExtension {
|
|||
|
||||
public object Value => TranslationManager.Instance.Translate(_key);
|
||||
|
||||
#region IWeakEventListener Members
|
||||
|
||||
public bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
|
||||
public bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
|
||||
{
|
||||
if (managerType == typeof(LanguageChangedEventManager))
|
||||
{
|
||||
|
@ -46,12 +40,6 @@ namespace TranslationByMarkupExtension {
|
|||
PropertyChanged?.Invoke( this, new PropertyChangedEventArgs("Value"));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region INotifyPropertyChanged Members
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
#endregion
|
||||
}
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue