51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
|
|
namespace Mercat_1.Empreses
|
|
{
|
|
|
|
public sealed class Empresa
|
|
{
|
|
public long Id { get; private set; }
|
|
public long numClient { get; private set; }
|
|
public string Name { get; private set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Format("Id = {0}, NumClient = {1} nomEmpresa = {2}", Id, numClient, Name);
|
|
//return string.Format("Person(numClient = {0}, Name = {2})", numClient, Name);
|
|
}
|
|
|
|
public Empresa(long id, long numclient, string name)
|
|
//public Empresa(long numclient, string name)
|
|
{
|
|
Id = id;
|
|
numClient = numclient;
|
|
Name = name;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Default class from AutocompleteCombobox
|
|
public static class PersonModule
|
|
{
|
|
/// <summary>
|
|
/// List of name automatically generated by http://listofrandomnames.com . Thanks!
|
|
/// </summary>
|
|
static readonly string source =
|
|
@"
|
|
Aaron Custodio
|
|
Zulma Avent
|
|
";
|
|
|
|
static readonly IReadOnlyList<Person> allPersons =
|
|
source.Split(new[] { Environment.NewLine, "\n" }, StringSplitOptions.RemoveEmptyEntries)
|
|
.Select((name, i) => new Person(i + 1L, name))
|
|
.ToArray();
|
|
|
|
public static IReadOnlyList<Person> All
|
|
{
|
|
get { return allPersons; }
|
|
}
|
|
}
|
|
*/
|
|
}
|