Пример #1
0
 public void AddField(ContractFormField newFiled)
 {
     Fields.Add(newFiled);
     migrator.Notify(
         () => Fields,
         () => Fields.Add(newFiled),
         () => Fields.Remove(newFiled), MigratorMode.EveryChange);
 }
Пример #2
0
        public void RemoveField(ContractFormField removeField)
        {
            var position = Fields.IndexOf(removeField);

            Fields.Remove(removeField);
            migrator.Notify(
                () => Fields,
                () => Fields.Remove(removeField),
                () => Fields.Insert(position, removeField), MigratorMode.EveryChange);
        }