示例#1
0
        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;
        }
示例#2
0
        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();
        }
示例#3
0
        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();
 }