/// <summary> /// new /// </summary> public DBList() { // new _Model = new Model.DBList(); DataBases = new ObservableCollection <Model.DBList.Tree>(); // 一覧追加 _Model.GetDataBase().ForEach(DataBase => { DataBases.Add(DataBase); }); }
/// <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; }