public void AddDefaultItem() { if (_templates == null) { _templates = new TemplateGroups(); _templates.AddDefaultItem(); } if (_rootSign == null) { _rootSign = new SignGroupTree(); //_rootSign.AddDefaultItem(); } if (_libraryGroups == null) { _libraryGroups = new LibraryGroups(); _libraryGroups.AddDefaultItem(); } if (_sessionInfos == null) { _sessionInfos = new SessionInfos(); } if (_sources == null) { _sources = new ListSet <DataItem>(); } if (_recents == null) { _recents = new Recents(); } if (_lstCategory == null) { _lstCategory = new List <LiveCategory>(); } }
public ProjectInfo() { _rootSign = new SignGroupTree(); _templates = new TemplateGroups(); _libraryGroups = new LibraryGroups(); _sessionInfos = new SessionInfos(); _sources = new ListSet <DataItem>(); _recents = new Recents(); }
public void Clear() { _rootSign.Dispose(); _templates.Dispose(); _libraryGroups.Dispose(); _sessionInfos.Dispose(); _sources.Dispose(); _rootSign = new SignGroupTree(); _templates = new TemplateGroups(); _libraryGroups = new LibraryGroups(); _sessionInfos = new SessionInfos(); _sources = new ListSet <DataItem>(); _recents = new Recents(); }