NotifyWidgetNameChanged() приватный Метод

private NotifyWidgetNameChanged ( object obj, string oldName, string newName, bool isRoot ) : void
obj object
oldName string
newName string
isRoot bool
Результат void
Пример #1
0
 void OnWidgetNameChanged(Stetic.Wrapper.WidgetNameChangedArgs args, bool isTopLevel)
 {
     if (frontend != null)
     {
         frontend.NotifyWidgetNameChanged(Component.GetSafeReference(args.WidgetWrapper), args.OldName, args.NewName, isTopLevel);
     }
     if (args.WidgetWrapper != null && WidgetNameChanged != null)
     {
         WidgetNameChanged(this, args);
     }
 }
Пример #2
0
        void OnWidgetNameChanged(Stetic.Wrapper.WidgetNameChangedArgs args, bool isTopLevel)
        {
            if (frontend != null)
            {
                frontend.NotifyWidgetNameChanged(Component.GetSafeReference(args.WidgetWrapper), args.OldName, args.NewName, isTopLevel);
            }
            if (args.WidgetWrapper != null && WidgetNameChanged != null)
            {
                WidgetNameChanged(this, args);
            }

            if (modifiedTopLevels.Contains(args.OldName))
            {
                modifiedTopLevels.Remove(args.OldName);
            }

            if (!modifiedTopLevels.Contains(args.NewName))
            {
                modifiedTopLevels.Add(args.NewName);
            }
        }