public FieldForm(DBRegistrationClass dbReg, Form parent, TreeNode tableNode, TableFieldClass fieldObject, NotifiesClass lnotify, StateClasses.EditStateClass.eBearbeiten bearbeitenMode) { InitializeComponent(); DataFilled = false; this.MdiParent = parent; _dbReg = dbReg; TableNode = tableNode; TableClass tc = (TableClass)tableNode.Tag; TableObject = tc.Clone() as TableClass; BearbeitenMode = bearbeitenMode; FillCombos(); if (BearbeitenMode == StateClasses.EditStateClass.eBearbeiten.eInsert) { NewFieldObject(); } else { FieldObject = fieldObject; FieldObject.IsPrimary = TableObject.IsPrimary(FieldObject.Name); FieldObject.Domain.NotNull = TableObject.IsNotNull(FieldObject.Name); } OrgFieldObject = FieldObject.DeepClone(); ObjectToEdit(FieldObject); _localTableNotify = (lnotify == null) ? new NotifiesClass() : lnotify; DataFilled = false; _localTableNotify.Notify.OnRaiseInfoHandler += new NotifyInfos.RaiseNotifyHandler(TableInfoRaised); localNotify.Notify.OnRaiseInfoHandler += new NotifyInfos.RaiseNotifyHandler(InfoRaised); localNotify.Notify.OnRaiseErrorHandler += new NotifyInfos.RaiseNotifyHandler(ErrorRaised); }