Exemple #1
0
        void Disconnect()
        {
            r_Resources?.Dispose();
            r_Experience?.Dispose();
            r_Expedition?.Dispose();
            r_Construction?.Dispose();
            r_Development?.Dispose();
            r_Sortie?.Dispose();
            r_Battle?.Dispose();
            r_Fate?.Dispose();
            r_RankingPoints?.Dispose();
            r_SortieConsumption?.Dispose();
            r_BattleDetail?.Dispose();

            QuestProgress?.Dispose();

            if (r_Connection != null)
            {
                r_Connection.Update -= OnDatabaseUpdate;

                r_Connection.Dispose();
            }

            foreach (var rCustomGroup in r_CustomRecordsGroups.Values)
            {
                rCustomGroup.Dispose();
            }

            IsConnected = false;
        }