예제 #1
0
            } // end ExchangeGridInfoWithGid

            public void ArrangePack()
            {
                Dictionary <int, string[]> dict = new Dictionary <int, string[]>();

                SqliteManager.GetArrangePackInfo(username, roleindex, packType, ref dict);

                for (int i = 0; i < ConstConfig.GRID_COUNT; i++)
                {
                    int count = 0;

                    if (dict.ContainsKey(i))
                    {
                        idList[i] = dict[i][0];

                        if (int.TryParse(dict[i][1], out count))
                        {
                            countList[i] = count;
                        }
                        else
                        {
                            countList[i] = 0;
                        } // end if
                    }
                    else
                    {
                        idList[i]    = "0";
                        countList[i] = 0;
                    } // end if
                    WriteGridInfo(i, idList[i], countList[i]);
                }     // end for
            }         // end ArrangePack