public new void OnFinalize() { base.OnFinalize(); //this._spouseServiceView.OnFinalize(); bool flag = Game.Current != null; if (flag) { Game.Current.AfterTick = (Action <float>)Delegate.Remove(Game.Current.AfterTick, new Action <float>(this.AfterTick)); } this._parentView = null; }
public SpouseServiceVM(SpouseClanVM parent, GauntletClanScreen parentScreen) { this._parentView = parent; this._parentScreen = parentScreen; this._settingGroups = new MBBindingList <SpouseSettingsGroupVM>(); _spouseSettingGroups = MoreSpouseSetting.Instance.GenerateSettingsProperties(); _spouseSettingGroups.ForEach((obj) => { this._settingGroups.Add(new SpouseSettingsGroupVM(obj)); }); this._spousesBattleStats = new SpousesBattleStatisticVM(this._parentView); RefreshSpouse(); this.RefreshValues(); }
public new void OnFinalize() { base.OnFinalize(); if (null != this._selectedCharacter) { this._selectedCharacter.OnFinalize(); } this._selectedCharacter = null; bool flag = Game.Current != null; if (flag) { Game.Current.AfterTick = (Action <float>)Delegate.Remove(Game.Current.AfterTick, new Action <float>(this.AfterTick)); } this._parentView = null; }
public SpousesBattleStatisticVM(SpouseClanVM parentView) { this._parentView = parentView; this._historyMainVM = new BattleHistoryMainVM(); this._spousesStatisticsVM = new SpousesStatisticsVM(); }