using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace IReaper{
public class Core
{
static NotifiedDictionary coreData;
/// <summary>
///
/// </summary>
public static NotifiedDictionary CoreData
{
get { return Core.coreData; }
set { Core.coreData = value; }
}
static Core()
{
CoreData = new NotifiedDictionary();
InitCoreData();
}
/// <summary>
///
/// </summary>
static void InitCoreData()
{
Dictionary<string, System.Windows.Forms.TreeNode> allNodes = new Dictionary<string, System.Windows.Forms.TreeNode>();
allNodes.Add("Completed", null);
allNodes.Add("New", null);
allNodes.Add("All", null);
allNodes.Add("Last", null);
//
foreach (CoreDataType Key in System.Enum.GetValues(typeof(CoreDataType)))
{
CoreData.Add(Key, null);
}
CoreData[CoreDataType.AllCourseTreeNode] = allNodes;
CoreData[CoreDataType.HasCourse] = false;
CoreData[CoreDataType.Dispatched] = false;
CoreData[CoreDataType.HasNewVersion] = false;
}
}
}
|