private static void SetAndCallOnReposition(UIGrid uiGrid) { string onRepositionVersion = Buttons.GetOnRepositionVersion(uiGrid); bool flag = onRepositionVersion == null; if (!flag) { bool flag2 = onRepositionVersion == string.Empty || string.Compare(onRepositionVersion, Buttons.Version, false) < 0; if (flag2) { uiGrid.onReposition = new UIGrid.OnReposition(new Buttons.OnRepositionHandler(Buttons.Version).OnReposition); } bool flag3 = uiGrid.onReposition != null; if (flag3) { object target = uiGrid.onReposition.Target; bool flag4 = target != null; if (flag4) { Type type = target.GetType(); MethodInfo method = type.GetMethod("PreOnReposition"); bool flag5 = method != null; if (flag5) { method.Invoke(target, new object[0]); } } } } }
// Token: 0x06000013 RID: 19 RVA: 0x00002470 File Offset: 0x00000670 private static void SetAndCallOnReposition(UIGrid uiGrid) { string onRepositionVersion = Buttons.GetOnRepositionVersion(uiGrid); if (onRepositionVersion == null) { return; } if (onRepositionVersion == string.Empty || string.Compare(onRepositionVersion, Buttons.Version, false) < 0) { uiGrid.onReposition = new UIGrid.OnReposition(new Buttons.OnRepositionHandler(Buttons.Version).OnReposition); } if (uiGrid.onReposition != null) { object target = uiGrid.onReposition.Target; if (target != null) { MethodInfo method = target.GetType().GetMethod("PreOnReposition"); if (method != null) { method.Invoke(target, new object[0]); } } } }