예제 #1
0
        /// <summary>
        /// 終了処理
        /// </summary>
        public void Dispose()
        {
            if (Setting != null)
            {
                Setting.Dispose();
                Setting = null;
            }

            if (Drug != null)
            {
                Drug.Dispose();
                Drug = null;
            }

            if (Alarm != null)
            {
                Alarm.Dispose();
                Alarm = null;
            }

            if (_Realarms != null)
            {
                _Realarms.ForEach(realarm => { realarm.Dispose(); });
                _Realarms.Clear();
                _Realarms = null;
            }
        }