Add core classes.

This commit is contained in:
2019-05-23 22:15:57 +01:00
parent abf6e04a3f
commit 29e34556fb
10 changed files with 650 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
using System;
namespace Claunia.Localization.Core
{
public class Project
{
string name;
internal EventHandler ProjectModified;
string url;
string version;
/// <summary>
/// Project name
/// </summary>
public string Name
{
get => name;
set
{
name = value;
ProjectModified?.Invoke(this, EventArgs.Empty);
}
}
/// <summary>
/// Project version
/// </summary>
public string Version
{
get => version;
set
{
version = value;
ProjectModified?.Invoke(this, EventArgs.Empty);
}
}
/// <summary>
/// Project URL
/// </summary>
public string Url
{
get => url;
set
{
url = value;
ProjectModified?.Invoke(this, EventArgs.Empty);
}
}
}
}