Ejemplo n.º 1
0
        protected virtual void AddClicked(object sender, EventArgs e)
        {
            TriggerSchema trigger = schemaProvider.GetNewTriggerSchema("trigger_" + table.Name);

            trigger.TableName = table.Name;
            int index = 1;

            while (triggers.Contains(trigger.Name))
            {
                trigger.Name = "trigger_" + table.Name + (index++);
            }
            triggers.Add(trigger);
            AddTrigger(trigger);
            EmitContentChanged();
        }
        protected virtual void AddClicked(object sender, EventArgs e)
        {
            TriggerSchema trigger = schemaProvider.CreateTriggerSchema(string.Concat(table.Name,
                                                                                     "_",
                                                                                     "trigger_",
                                                                                     table.Name));

            trigger.TableName = table.Name;
            int index = 1;

            while (triggers.Contains(trigger.Name))
            {
                trigger.Name = "trigger_" + table.Name + (index++);
            }
            // triggers.Add (trigger);
            AddTrigger(trigger);
            EmitContentChanged();
        }