AGS.Editor.Components.FontsComponent.PropertyChanged C# (CSharp) Method

PropertyChanged() public method

public PropertyChanged ( string propertyName, object oldValue ) : void
propertyName string
oldValue object
return void
        public override void PropertyChanged(string propertyName, object oldValue)
        {
            if (propertyName == "Name")
            {
                RePopulateTreeView();

                foreach (ContentDocument doc in _documents.Values)
                {
                    doc.Name = ((FontEditor)doc.Control).ItemToEdit.WindowTitle;
                }

                FontTypeConverter.SetFontList(_agsEditor.CurrentGame.Fonts);
            }
        }