Cancellazione Task

This commit is contained in:
Maddo 2017-10-05 14:16:43 +02:00
commit d2ab7bfce6
5 changed files with 188 additions and 46 deletions

View file

@ -151,10 +151,10 @@ namespace CatalogLib
float fl = 0;
SetFloat(key, float.TryParse(_settingsDict[key].ToString(), out f) ? fl : defaultValue);
return (float) _settingsDict[key];
return (float)_settingsDict[key];
}
public T Get<T>(string key, T defaultValue)
{
@ -220,8 +220,8 @@ namespace CatalogLib
public bool DirAggiornaSottoDirectory
{
get { return this.GetBool("DirAggiornaSottoDirectory", true); }
set { this.SetBool("DirAggiornaSottoDirectory", value); }
get => this.GetBool("DirAggiornaSottoDirectory", true);
set => this.SetBool("DirAggiornaSottoDirectory", value);
}
public bool Grassetto
@ -313,7 +313,9 @@ namespace CatalogLib
set { SetString("DirDestinazione", value); }
}
public int Margine { get => GetInt("Margin", 1);
public int Margine
{
get => GetInt("Margin", 1);
set => SetInt("Margin", value);
}
public float MargVert { get; set; }
@ -493,19 +495,35 @@ namespace CatalogLib
set => SetString("ResizeDimension", value.ToString());
}
[Obsolete]
public string Posizione
public string LogoPath
{
get => string.Empty;
set { }
get => GetString("LogoPath");
set => SetString("LogoPath", value);
}
public int LogoWidth
{
get => GetInt("LogoWidth");
set => SetInt("LogoWidth", value);
}
public int LogoHeight
{
get => GetInt("LogoHeight");
set => SetInt("LogoHeight", value);
}
public string LogoMargin
{
get => GetString("LogoMargin");
set => SetString("LogoMargin", value);
}
#endregion
#region Enums
#endregion
}