Example #1
0
        /// <summary>
        /// new
        /// </summary>
        public DBList()
        {
            // new
            _Model    = new Model.DBList();
            DataBases = new ObservableCollection <Model.DBList.Tree>();

            // 一覧追加
            _Model.GetDataBase().ForEach(DataBase =>
            {
                DataBases.Add(DataBase);
            });
        }
Example #2
0
        /// <summary>
        /// 終了処理
        /// </summary>
        public void Dispose()
        {
            _Model.Dispose();
            _Model = null;

            for (int iLoop = 0; iLoop < DataBases.Count; iLoop++)
            {
                DataBases[iLoop].Dispose();
                DataBases[iLoop] = null;
            }
            DataBases.Clear();
            DataBases = null;
        }