private void DeleteLabel(TextAppearance appearance) { TextAppearancesCollection.Remove(TextAppearancesCollection.Single(t => t.Tag == appearance.Tag)); Appearance.TextAppearances.Remove(Appearance.TextAppearances.Single(t => t.Tag == appearance.Tag)); LabelDeleted?.Invoke(this, new TextLabelChangedEventArgs(appearance)); }
private void CreateLabel(TextAppearance appearance) { Appearance.TextAppearances.Add(appearance); TextAppearancesCollection.Add(appearance); NewLabelCreated?.Invoke(this, new TextLabelChangedEventArgs(appearance)); }