コード例 #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;
        }
コード例 #4
0
 public SpousesBattleStatisticVM(SpouseClanVM parentView)
 {
     this._parentView          = parentView;
     this._historyMainVM       = new BattleHistoryMainVM();
     this._spousesStatisticsVM = new SpousesStatisticsVM();
 }