Guids werden hinzugefügt

This commit is contained in:
Husky
2019-05-31 23:27:29 +02:00
parent 7656f0d7b7
commit 74c0ea596f
9 changed files with 58 additions and 10 deletions

View File

@@ -20,15 +20,16 @@ namespace SanSystem
public partial class frmObjektEdit : Form
{
Inspektionsobjekt inspektionsobjekt = null;
private bool neu = false;
/// <summary>
///
/// </summary>
/// <param name="inspektion"></param>
public frmObjektEdit(Inspektionsobjekt inspektion)
public frmObjektEdit(Inspektionsobjekt inspektion, bool neu = false)
{
InitializeComponent();
this.neu = neu;
btn_add_san.Text = Global.Instance.language.Labels["add_san"];
btn_close.Text = Global.Instance.language.Labels["btn_close"];
@@ -213,5 +214,13 @@ namespace SanSystem
//frmSanKonzept.MdiParent = this.MdiParent;
frmSanKonzept.ShowDialog();
}
private void Txt_punkt_bis_Leave(object sender, EventArgs e)
{
if (!neu) return;
// Prüfen ob dieser Element bereits vorhanden ist
if (Datenbank.Instance.loadedProjekt.Objekte.Exists(x => x.BisPunkt.Equals(txt_punkt_bis.Text)))
txt_punkt_bis.BackColor = Color.Red;
}
}
}