public static void OnResetAllExchangeCount()
        {
            ListView <Activity> activityList = Singleton <ActivitySys> .GetInstance().GetActivityList((Activity actv) => actv.Type == COM_WEAL_TYPE.COM_WEAL_EXCHANGE);

            for (int i = 0; i < activityList.Count; i++)
            {
                ExchangeActivity exchangeActivity = activityList[i] as ExchangeActivity;
                if (exchangeActivity != null)
                {
                    exchangeActivity.ResetExchangeCount();
                    exchangeActivity.UpdateView();
                }
            }
            ListView <Activity> activityList2 = Singleton <ActivitySys> .GetInstance().GetActivityList((Activity actv) => actv.Type == COM_WEAL_TYPE.COM_WEAL_PTEXCHANGE);

            for (int j = 0; j < activityList2.Count; j++)
            {
                PointsExchangeActivity pointsExchangeActivity = activityList2[j] as PointsExchangeActivity;
                if (pointsExchangeActivity != null)
                {
                    pointsExchangeActivity.ResetExchangeCount();
                    pointsExchangeActivity.UpdateView();
                }
            }
        }
예제 #2
0
        public static void OnResetAllExchangeCount()
        {
            ListView <Activity> activityList = Singleton <ActivitySys> .GetInstance().GetActivityList((Activity actv) => actv.Type == 4);

            for (int i = 0; i < activityList.get_Count(); i++)
            {
                ExchangeActivity exchangeActivity = activityList.get_Item(i) as ExchangeActivity;
                if (exchangeActivity != null)
                {
                    exchangeActivity.ResetExchangeCount();
                    exchangeActivity.UpdateView();
                }
            }
            ListView <Activity> activityList2 = Singleton <ActivitySys> .GetInstance().GetActivityList((Activity actv) => actv.Type == 5);

            for (int j = 0; j < activityList2.get_Count(); j++)
            {
                PointsExchangeActivity pointsExchangeActivity = activityList2.get_Item(j) as PointsExchangeActivity;
                if (pointsExchangeActivity != null)
                {
                    pointsExchangeActivity.ResetExchangeCount();
                    pointsExchangeActivity.UpdateView();
                }
            }
        }