This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Claunia.Localization/Claunia.Localization.Core/Project.cs

53 lines
1.2 KiB
C#
Raw Normal View History

2019-05-23 22:15:57 +01:00
using System;
namespace Claunia.Localization.Core
{
public class Project
{
2019-05-24 01:19:27 +01:00
string name;
2019-05-23 22:15:57 +01:00
internal EventHandler ProjectModified;
string url;
string version;
2019-05-24 01:19:27 +01:00
2019-05-23 22:15:57 +01:00
/// <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);
}
}
2019-05-24 01:19:27 +01:00
public override string ToString() => version is null ? name : $"{name} {version}";
2019-05-23 22:15:57 +01:00
}
}