private void FormMethod_Release()
        {
            try
            {
                // Daten holen und prüfen
                ISingleDbObject dbobject = m_MainActivator.DbObject;

                if (dbobject == null)
                {
                    return;
                }

                if (m_IsChanged)
                {
                    DialogResult result = FormTool.ShowQuestion("SDL_FormSDLDomainNetlogon_Question_SaveChanges", MessageBoxButtons.YesNoCancel);

                    if (result == DialogResult.Cancel)
                    {
                        return;
                    }

                    if (result == DialogResult.Yes)
                    {
                        Save();
                    }
                }

                JobGen.Generate(dbobject, "CopyNETLOGONFromTASToFDS");
            }
            catch (Exception ex)
            {
                // Fehler melden
                HandleException(ex);
            }
        }
        /// <summary>
        /// The method is called by Customizer for generation of events.
        /// </summary>
        /// <remarks>The parameters "ProfileCUA_Ident_InstTypeAlso" and "ProfileCUA_Ident_OSAlso" will be added to the parameter collection.
        /// </remarks>
        /// <param name="eventName">INSERT, UPDATE, DELETE</param>
        /// <returns>Always False</returns>
        protected override bool OnCustomGenerate(String eventName)
        {
            IColDbObject    colChild;
            ISingleDbObject oProfileCUA;
            Hashtable       param = new Hashtable(StringComparer.OrdinalIgnoreCase);
            long            ulCo  = 0;

            using (NoRightsCheck())
            {
                colChild = DbObject.GetCR("ProfileCanUsedAlso", "UID_Profile").Children;

                foreach (IColElem colElem in colChild)
                {
                    oProfileCUA = colElem.Create();
                    param.Add("ProfileCUA_Ident_InstTypeAlso" + ulCo.ToString(), oProfileCUA["Ident_InstTypeAlso"].New.String);
                    param.Add("ProfileCUA_Ident_OSAlso" + ulCo.ToString(), oProfileCUA["Ident_OSAlso"].New.String);
                    ulCo++;
                }

                if (!DbObject.IsLoaded)
                {
                    JobGen.Generate(DbObject, "INSERT", param);
                    return(false);
                }
                else if (DbObject.IsDeleted)
                {
                    JobGen.Generate(DbObject, "DELETE", param);
                    return(false);
                }
                else
                {
                    JobGen.Generate(DbObject, "UPDATE", param);
                    return(false);
                }
            }
        }