Пример #1
0
 /// <summary>
 /// イメージ全削除処理
 /// </summary>
 public static void RemoveAllImage()
 {
     foreach (int inKey in ClsSystem.mDicImage.Keys)
     {
         ClsDatImage clDatImage = ClsSystem.mDicImage[inKey];
         clDatImage.Remove();
     }
     ClsSystem.mDicImage.Clear();
 }
Пример #2
0
        /// <summary>
        /// イメージ削除処理
        /// </summary>
        /// <param name="inKey">イメージキー</param>
        public static void RemoveImage(int inKey)
        {
            if (inKey <= 0)
            {
                return;
            }

            bool isExist = ClsSystem.mDicImage.ContainsKey(inKey);

            if (!isExist)
            {
                return;
            }

            ClsDatImage clDatImage = ClsSystem.mDicImage[inKey];

            clDatImage.Remove();

            ClsSystem.mDicImage.Remove(inKey);
        }