public void EndEdit() { if (Descriptor != null) { Descriptor.MemberUniqueName = MemberControl.Text; if (ConditionDetails.IsEnabled) { ConditionDetails.EndEdit(); } Descriptor.Conditions.Clear(); foreach (var item in ConditionsList.List) { Descriptor.Conditions.Add(item); } ConditionsList.Refresh(); EventHandler handler = EditEnd; if (handler != null) { handler(this, EventArgs.Empty); } } }
void ConditionDetails_PropertyChanged(object sender, EventArgs e) { ConditionsList.Refresh(); }