Guids werden hinzugefügt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user