kreta/Kreta.DataAccessGenerated/Entities/KozmuSzamla.cs
2024-03-13 00:33:46 +01:00

943 lines
30 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using Kreta.DataAccess.Interfaces;
using Kreta.Framework;
using Kreta.Framework.Actions;
using Kreta.Framework.Collections;
using Kreta.Framework.Collections.Generic;
using Kreta.Framework.Entities;
using Kreta.Framework.Entities.Generic;
using Kreta.Framework.Exceptions;
namespace SDA.Kreta.Entities
{
/// <summary>
/// Az UML modell KozmuSzamla entitásának megvalósítása.
/// </summary>
/// <remarks>A kód teljes egészében generált, kézi módosítása nem megengedett!</remarks>
[Entity("KozmuSzamla")]
// alapértelmezett EntityHistoryMode
public class KozmuSzamla : Entity, IKozmuSzamla
{
internal protected KozmuSzamla()
: base()
{
}
public class AttributeInfo
{
public const string BefizetesDatuma = "BefizetesDatuma";
public const string FizetesiHatarido = "FizetesiHatarido";
public const string Fizetve = "Fizetve";
public const string Invaliditasoka = "Invaliditasoka";
public const string Kelte = "Kelte";
public const string Kibocsato = "Kibocsato";
public const string KozmuSzamlaTipusId = "KozmuSzamlaTipusId";
public const string Osszeg = "Osszeg";
public const string PenznemId = "PenznemId";
public const string Valid = "Valid";
public const string ValidalasAlatt = "ValidalasAlatt";
}
public class AttributeLengthInfo
{
public const int InvaliditasokaLength = 2147483647;
public const int KibocsatoLength = 2147483647;
}
#region General
private KozmuSzamlaDA m_DA = new KozmuSzamlaDA();
protected static KozmuSzamla FakeKozmuSzamla { get; set; }
public static KozmuSzamla GiveAnInstance()
{
KozmuSzamla result = FakeKozmuSzamla == null
? new KozmuSzamla()
: (KozmuSzamla)FakeKozmuSzamla.MemberwiseClone();
result.Reset();
result.SetDefaultData();
return result;
}
protected void SetDefaultData()
{
if (UserContext.Instance != null)
{
if (UserContext.Instance.IntezmenyId > 0)
{
IntezmenyId = UserContext.Instance.IntezmenyId;
}
if (UserContext.Instance.AktivTanevId > 0)
{
TanevId = UserContext.Instance.AktivTanevId;
}
m_State = EntityState.Uninitialized;
}
}
protected override IEntityDataAccessor GetDataAccessor() { return m_DA; }
protected internal virtual IEntityDataAccessor InheritedDA { get { return null; } }
[Obsolete("Ezt ne használjátok, mert mindenhova bele kellene fogalmazni a tanév szűrést is! Meg fog majd szűnni!")]
public static IEntityCollection<KozmuSzamla> LoadAll()
{
return LoadWithFilter("");
}
[Obsolete("Ezt ne használjátok, mert mindenhova bele kellene fogalmazni a tanév szűrést is! Meg fog majd szűnni!")]
public static IEntityCollection<KozmuSzamla> LoadAll(ColumnFilterMode columnFilterMode, IEnumerable<string> columns)
{
return LoadWithFilter("", columnFilterMode, columns);
}
[Obsolete("Ezt ne használjátok, mert mindenhova bele kellene fogalmazni a tanév szűrést is! Meg fog majd szűnni!")]
public static IEntityCollection<KozmuSzamla> LoadWithFilter(string filter, Dictionary<string, object> commandParameters = null)
{
var result = new EntityCollection<KozmuSzamla>();
new KozmuSzamlaDA().LoadWithFilter(result, filter, commandParameters);
return result;
}
[Obsolete("Ezt ne használjátok, mert mindenhova bele kellene fogalmazni a tanév szűrést is! Meg fog majd szűnni!")]
public static IEntityCollection<KozmuSzamla> LoadWithFilter(string filter, ColumnFilterMode columnFilterMode, IEnumerable<string> columns, Dictionary<string, object> commandParameters = null)
{
var result = new EntityCollection<KozmuSzamla>();
new KozmuSzamlaDA().LoadWithFilter(result, filter, columnFilterMode, columns, commandParameters);
return result;
}
protected override void StoreOriginalValues()
{
base.StoreOriginalValues();
OriginalValues.Add("BefizetesDatuma", (BefizetesDatuma == null ? (object)DBNull.Value : (object)m_BefizetesDatuma));
OriginalValues.Add("FizetesiHatarido", (FizetesiHatarido == null ? (object)DBNull.Value : (object)m_FizetesiHatarido));
OriginalValues.Add("Fizetve", (object)m_Fizetve);
OriginalValues.Add("Invaliditasoka", (Invaliditasoka == null ? (object)DBNull.Value : (object)m_Invaliditasoka));
OriginalValues.Add("Kelte", (Kelte == null ? (object)DBNull.Value : (object)m_Kelte));
OriginalValues.Add("Kibocsato", (Kibocsato == null ? (object)DBNull.Value : (object)m_Kibocsato));
OriginalValues.Add("KozmuSzamlaTipusId", (KozmuSzamlaTipusId == null ? (object)DBNull.Value : (object)m_KozmuSzamlaTipusId));
OriginalValues.Add("Osszeg", (Osszeg == null ? (object)DBNull.Value : (object)m_Osszeg));
OriginalValues.Add("PenznemId", (PenznemId == null ? (object)DBNull.Value : (object)m_PenznemId));
OriginalValues.Add("Valid", (object)m_Valid);
OriginalValues.Add("ValidalasAlatt", (object)m_ValidalasAlatt);
OriginalValues.Add("MerohelyId", (m_MerohelyId < 0 ? (object)DBNull.Value : (object)m_MerohelyId));
OriginalValues.Add("IntezmenyId", (m_IntezmenyId < 0 ? (object)DBNull.Value : (object)m_IntezmenyId));
OriginalValues.Add("TanevId", (m_TanevId < 0 ? (object)DBNull.Value : (object)m_TanevId));
}
#endregion
#region Ellenőrzés
protected override void Validate(bool skipValidateAttributes = false)
{
base.Validate();
if (!skipValidateAttributes)
{
// korlátos hosszúságú mezők ellenőrzése...
if (m_Invaliditasoka != null && m_Invaliditasoka.Length > 2147483647)
{
throw new InvalidEntityAttributeException("KozmuSzamla", "Invaliditasoka", EntityAttributeError.TooLong);
}
if (m_Kibocsato != null && m_Kibocsato.Length > 2147483647)
{
throw new InvalidEntityAttributeException("KozmuSzamla", "Kibocsato", EntityAttributeError.TooLong);
}
}
// kötelező asszociációk ellenőrzése...
if (m_MerohelyId == -1) { throw new InvalidEntityAttributeException("KozmuSzamla", "MerohelyId", EntityAttributeError.Empty); }
if (m_IntezmenyId == -1) { throw new InvalidEntityAttributeException("KozmuSzamla", "IntezmenyId", EntityAttributeError.Empty); }
if (m_TanevId == -1) { throw new InvalidEntityAttributeException("KozmuSzamla", "TanevId", EntityAttributeError.Empty); }
}
#endregion
#region Alaphelyzetbe állítás
protected override void Reset()
{
base.Reset();
// alaphelyzetbe állítjuk az egyszerű mezőket
this.m_BefizetesDatuma = null;
this.m_FizetesiHatarido = null;
this.m_Fizetve = false;
this.m_Invaliditasoka = null;
this.m_Kelte = null;
this.m_Kibocsato = null;
this.m_KozmuSzamlaTipusId = null;
this.m_Osszeg = null;
this.m_PenznemId = null;
this.m_Valid = false;
this.m_ValidalasAlatt = false;
// alaphelyzetbe állítjuk az asszociációkból származó mezőket
this.m_MerohelyId = -1;
this.m_Merohely = null; // Entity
this.m_IntezmenyId = -1;
this.m_Intezmeny = null; // Entity
this.m_TanevId = -1;
this.m_Tanev = null; // Entity
}
#endregion
protected override void DeAssociateBeforeDelete(bool runHandler = false)
{
// Nem kaszkád törölhető asszociációk ellenőrzése, hogy üresek-e...
// Merohely esetében mi mutatunk a másikra: startrole: *, endrole: 1
// Intezmeny esetében mi mutatunk a másikra: startrole: *, endrole: 1
// Tanev esetében mi mutatunk a másikra: startrole: *, endrole: 1
// kaszkád törlések...
}
#region Mezők és tulajdonságok
#region Egyszerű mezők
#region BefizetesDatuma
protected internal DateTime? m_BefizetesDatuma;
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
[EntityProperty("BefizetesDatuma", EntityPropertyBaseType.ValueType, typeof(DateTime), EntityCopyMethod.ShallowCopy)]
public virtual DateTime? BefizetesDatuma
{
get
{
return m_BefizetesDatuma;
}
set
{
CheckModifyable();
if (m_BefizetesDatuma == value) return;
m_BefizetesDatuma = value;
FieldModified("BefizetesDatuma", value);
}
}
#endregion
#region FizetesiHatarido
protected internal DateTime? m_FizetesiHatarido;
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
[EntityProperty("FizetesiHatarido", EntityPropertyBaseType.ValueType, typeof(DateTime), EntityCopyMethod.ShallowCopy)]
public virtual DateTime? FizetesiHatarido
{
get
{
return m_FizetesiHatarido;
}
set
{
CheckModifyable();
if (m_FizetesiHatarido == value) return;
m_FizetesiHatarido = value;
FieldModified("FizetesiHatarido", value);
}
}
#endregion
#region Fizetve
protected internal bool m_Fizetve;
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
[EntityProperty("Fizetve", EntityPropertyBaseType.ValueType, typeof(bool), EntityCopyMethod.ShallowCopy)]
public virtual bool Fizetve
{
get
{
return m_Fizetve;
}
set
{
CheckModifyable();
if (m_Fizetve == value) return;
m_Fizetve = value;
FieldModified("Fizetve", value);
}
}
#endregion
#region Invaliditasoka
protected internal string m_Invaliditasoka;
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
[EntityProperty("Invaliditasoka", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
public virtual string Invaliditasoka
{
get
{
return m_Invaliditasoka;
}
set
{
CheckModifyable();
if (m_Invaliditasoka == value) return;
m_Invaliditasoka = value;
FieldModified("Invaliditasoka", value);
}
}
#endregion
#region Kelte
protected internal DateTime? m_Kelte;
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
[EntityProperty("Kelte", EntityPropertyBaseType.ValueType, typeof(DateTime), EntityCopyMethod.ShallowCopy)]
public virtual DateTime? Kelte
{
get
{
return m_Kelte;
}
set
{
CheckModifyable();
if (m_Kelte == value) return;
m_Kelte = value;
FieldModified("Kelte", value);
}
}
#endregion
#region Kibocsato
protected internal string m_Kibocsato;
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
[EntityProperty("Kibocsato", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
public virtual string Kibocsato
{
get
{
return m_Kibocsato;
}
set
{
CheckModifyable();
if (m_Kibocsato == value) return;
m_Kibocsato = value;
FieldModified("Kibocsato", value);
}
}
#endregion
#region KozmuSzamlaTipusId
protected internal int? /* DictionaryItem */ m_KozmuSzamlaTipusId;
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
[EntityProperty("KozmuSzamlaTipusId", EntityPropertyBaseType.ValueType, typeof(int /* DictionaryItem */), EntityCopyMethod.ShallowCopy)]
[EntityDictionaryItemProperty("KozmuSzamlaTipusId", "KozmuSzamlaTipus", typeof(SDA.Kreta.Entities.KozmuSzamlaTipus))]
public virtual int? /* DictionaryItem */ KozmuSzamlaTipusId
{
get
{
return m_KozmuSzamlaTipusId;
}
set
{
CheckModifyable();
if (m_KozmuSzamlaTipusId == value) return;
m_KozmuSzamlaTipusId = value;
FieldModified("KozmuSzamlaTipusId", value);
}
}
#endregion
#region Osszeg
protected internal double? m_Osszeg;
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
[EntityProperty("Osszeg", EntityPropertyBaseType.ValueType, typeof(double), EntityCopyMethod.ShallowCopy)]
public virtual double? Osszeg
{
get
{
return m_Osszeg;
}
set
{
CheckModifyable();
if (m_Osszeg == value) return;
m_Osszeg = value;
FieldModified("Osszeg", value);
}
}
#endregion
#region PenznemId
protected internal int? /* DictionaryItem */ m_PenznemId;
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
[EntityProperty("PenznemId", EntityPropertyBaseType.ValueType, typeof(int /* DictionaryItem */), EntityCopyMethod.ShallowCopy)]
[EntityDictionaryItemProperty("PenznemId", "PenznemTipus", typeof(SDA.Kreta.Entities.PenznemTipus))]
public virtual int? /* DictionaryItem */ PenznemId
{
get
{
return m_PenznemId;
}
set
{
CheckModifyable();
if (m_PenznemId == value) return;
m_PenznemId = value;
FieldModified("PenznemId", value);
}
}
#endregion
#region Valid
protected internal bool m_Valid;
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
[EntityProperty("Valid", EntityPropertyBaseType.ValueType, typeof(bool), EntityCopyMethod.ShallowCopy)]
public virtual bool Valid
{
get
{
return m_Valid;
}
set
{
CheckModifyable();
if (m_Valid == value) return;
m_Valid = value;
FieldModified("Valid", value);
}
}
#endregion
#region ValidalasAlatt
protected internal bool m_ValidalasAlatt;
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
[EntityProperty("ValidalasAlatt", EntityPropertyBaseType.ValueType, typeof(bool), EntityCopyMethod.ShallowCopy)]
public virtual bool ValidalasAlatt
{
get
{
return m_ValidalasAlatt;
}
set
{
CheckModifyable();
if (m_ValidalasAlatt == value) return;
m_ValidalasAlatt = value;
FieldModified("ValidalasAlatt", value);
}
}
#endregion
#endregion
#region Asszociációkkal kapcsolatos dolgok
#region KozmuSzamla (*) -> Merohely (1)
protected internal int m_MerohelyId = -1;
/// <summary>
/// A(z) Merohely asszociáció végpontjának ID-ja.
/// </summary>
/// <remarks>
/// - Insert() előtt célszerű kitölteni
/// - Update() nincs rá hatással: ezt a mezőt nem frissíti
/// - LoadByID() felhozza ezt a mezőt
/// </remarks>
public virtual int MerohelyId
{
get
{
return InternalMerohelyId;
}
set
{
InternalMerohelyId = value;
}
}
/// <summary>
/// Ez egy külön bejárat a DA számára
/// <summary>
internal int InternalMerohelyId
{
get
{
if (m_Merohely != null)
{
return m_Merohely.ID;
}
else
{
return m_MerohelyId;// XXX az meg nem teljesen OK
}
}
set
{
CheckModifyable();
if (m_MerohelyId != value)
{
m_MerohelyId = value;
m_Merohely = null;
FieldModified("MerohelyId", value);
}
}
}
/// <summary>
/// Ez egy külön bejárat a DA számára
/// <summary>
internal void ModifyMerohely(Merohely value)
{
m_MerohelyId = value != null ? value.ID : -1;
m_Merohely = value;
FieldModified("MerohelyId", value != null ? (object)value.ID : DBNull.Value);
}
protected internal void SetMerohely(Merohely value)
{
m_Merohely = value;
if (value != null)
{
m_MerohelyId = value.ID;
}
else
{
m_MerohelyId = -1;
}
}
protected Merohely m_Merohely = null;
IMerohely IKozmuSzamla.Merohely
{
get { return Merohely; }
set { Merohely = value as Merohely; }
}
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
/// <remarks>
/// Az UML modellben szereplő KozmuSzamla és Merohely entitások közötti asszociáció megvalósítása.
/// </remarks>
[EntityProperty("Merohely", EntityPropertyBaseType.Entity, typeof(Merohely), EntityCopyMethod.ShallowCopy)]
public virtual Merohely Merohely
{
get
{
if ((m_Merohely == null) && (m_MerohelyId != -1))
{
SDA.Kreta.Entities.Merohely partner = SDA.Kreta.Entities.Merohely.GiveAnInstance();
partner.LoadByID(m_MerohelyId);
this.SetMerohely(partner);
}
// természetesen null-t adunk vissza, ha nem tudtunk felhozni semmit
return m_Merohely;
}
set
{
CheckModifyable();
if (value != null)
{
if ((m_Merohely == null) || (value.ID != m_Merohely.ID))
{
if (value.State != EntityState.Initialized)
{
throw new EntityStateException(value.State);
}
if ((this.State != EntityState.New))
{
// Lista van a másik oldalon, úgyhogy a lista DA-ját használjuk
SDA.Kreta.Entities.Merohely_KozmuSzamla_DA da = new Merohely_KozmuSzamla_DA(value);
da.AddItem(this);
this.SetMerohely(value);
}
else
{
this.SetMerohely(value);
}
FieldModified("MerohelyId", value.ID);
}
}
else
{
// ki kell törölni a kapcsolatot az adatbázisban
this.SetMerohely(null);
UpdateAssociations();
FieldModified("MerohelyId", DBNull.Value);
}
}
}
#endregion
#region KozmuSzamla (*) -> Intezmeny (1)
protected internal int m_IntezmenyId = -1;
/// <summary>
/// A(z) Intezmeny asszociáció végpontjának ID-ja.
/// </summary>
/// <remarks>
/// - Insert() előtt célszerű kitölteni
/// - Update() nincs rá hatással: ezt a mezőt nem frissíti
/// - LoadByID() felhozza ezt a mezőt
/// </remarks>
public virtual int IntezmenyId
{
get
{
return InternalIntezmenyId;
}
set
{
InternalIntezmenyId = value;
}
}
/// <summary>
/// Ez egy külön bejárat a DA számára
/// <summary>
internal int InternalIntezmenyId
{
get
{
if (m_Intezmeny != null)
{
return m_Intezmeny.ID;
}
else
{
return m_IntezmenyId;// XXX az meg nem teljesen OK
}
}
set
{
CheckModifyable();
if (m_IntezmenyId != value)
{
m_IntezmenyId = value;
m_Intezmeny = null;
FieldModified("IntezmenyId", value);
}
}
}
/// <summary>
/// Ez egy külön bejárat a DA számára
/// <summary>
internal void ModifyIntezmeny(Intezmeny value)
{
m_IntezmenyId = value != null ? value.ID : -1;
m_Intezmeny = value;
FieldModified("IntezmenyId", value != null ? (object)value.ID : DBNull.Value);
}
protected internal void SetIntezmeny(Intezmeny value)
{
m_Intezmeny = value;
if (value != null)
{
m_IntezmenyId = value.ID;
}
else
{
m_IntezmenyId = -1;
}
}
protected Intezmeny m_Intezmeny = null;
IIntezmeny IKozmuSzamla.Intezmeny
{
get { return Intezmeny; }
set { Intezmeny = value as Intezmeny; }
}
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
/// <remarks>
/// Az UML modellben szereplő KozmuSzamla és Intezmeny entitások közötti asszociáció megvalósítása.
/// </remarks>
[EntityProperty("Intezmeny", EntityPropertyBaseType.Entity, typeof(Intezmeny), EntityCopyMethod.ShallowCopy)]
public virtual Intezmeny Intezmeny
{
get
{
if ((m_Intezmeny == null) && (m_IntezmenyId != -1))
{
SDA.Kreta.Entities.Intezmeny partner = SDA.Kreta.Entities.Intezmeny.GiveAnInstance();
partner.LoadByID(m_IntezmenyId);
this.SetIntezmeny(partner);
}
// természetesen null-t adunk vissza, ha nem tudtunk felhozni semmit
return m_Intezmeny;
}
set
{
CheckModifyable();
if (value != null)
{
if ((m_Intezmeny == null) || (value.ID != m_Intezmeny.ID))
{
if (value.State != EntityState.Initialized)
{
throw new EntityStateException(value.State);
}
if ((this.State != EntityState.New))
{
// Lista van a másik oldalon, úgyhogy a lista DA-ját használjuk
SDA.Kreta.Entities.Intezmeny_KozmuSzamla_DA da = new Intezmeny_KozmuSzamla_DA(value);
da.AddItem(this);
this.SetIntezmeny(value);
}
else
{
this.SetIntezmeny(value);
}
FieldModified("IntezmenyId", value.ID);
}
}
else
{
// ki kell törölni a kapcsolatot az adatbázisban
this.SetIntezmeny(null);
UpdateAssociations();
FieldModified("IntezmenyId", DBNull.Value);
}
}
}
#endregion
#region KozmuSzamla (*) -> Tanev (1)
protected internal int m_TanevId = -1;
/// <summary>
/// A(z) Tanev asszociáció végpontjának ID-ja.
/// </summary>
/// <remarks>
/// - Insert() előtt célszerű kitölteni
/// - Update() nincs rá hatással: ezt a mezőt nem frissíti
/// - LoadByID() felhozza ezt a mezőt
/// </remarks>
public virtual int TanevId
{
get
{
return InternalTanevId;
}
set
{
InternalTanevId = value;
}
}
/// <summary>
/// Ez egy külön bejárat a DA számára
/// <summary>
internal int InternalTanevId
{
get
{
if (m_Tanev != null)
{
return m_Tanev.ID;
}
else
{
return m_TanevId;// XXX az meg nem teljesen OK
}
}
set
{
CheckModifyable();
if (m_TanevId != value)
{
m_TanevId = value;
m_Tanev = null;
FieldModified("TanevId", value);
}
}
}
/// <summary>
/// Ez egy külön bejárat a DA számára
/// <summary>
internal void ModifyTanev(Tanev value)
{
m_TanevId = value != null ? value.ID : -1;
m_Tanev = value;
FieldModified("TanevId", value != null ? (object)value.ID : DBNull.Value);
}
protected internal void SetTanev(Tanev value)
{
m_Tanev = value;
if (value != null)
{
m_TanevId = value.ID;
}
else
{
m_TanevId = -1;
}
}
protected Tanev m_Tanev = null;
ITanev IKozmuSzamla.Tanev
{
get { return Tanev; }
set { Tanev = value as Tanev; }
}
/// <summary>
/// Nincs definiálva megjegyzés.
/// </summary>
/// <remarks>
/// Az UML modellben szereplő KozmuSzamla és Tanev entitások közötti asszociáció megvalósítása.
/// </remarks>
[EntityProperty("Tanev", EntityPropertyBaseType.Entity, typeof(Tanev), EntityCopyMethod.ShallowCopy)]
public virtual Tanev Tanev
{
get
{
if ((m_Tanev == null) && (m_TanevId != -1))
{
SDA.Kreta.Entities.Tanev partner = SDA.Kreta.Entities.Tanev.GiveAnInstance();
partner.LoadByID(m_TanevId);
this.SetTanev(partner);
}
// természetesen null-t adunk vissza, ha nem tudtunk felhozni semmit
return m_Tanev;
}
set
{
CheckModifyable();
if (value != null)
{
if ((m_Tanev == null) || (value.ID != m_Tanev.ID))
{
if (value.State != EntityState.Initialized)
{
throw new EntityStateException(value.State);
}
if ((this.State != EntityState.New))
{
// Lista van a másik oldalon, úgyhogy a lista DA-ját használjuk
SDA.Kreta.Entities.Tanev_KozmuSzamla_DA da = new Tanev_KozmuSzamla_DA(value);
da.AddItem(this);
this.SetTanev(value);
}
else
{
this.SetTanev(value);
}
FieldModified("TanevId", value.ID);
}
}
else
{
// ki kell törölni a kapcsolatot az adatbázisban
this.SetTanev(null);
UpdateAssociations();
FieldModified("TanevId", DBNull.Value);
}
}
}
#endregion
#endregion
#endregion
}
}