// Constructor //---------------------------------------------------------------------------------------- internal Project(string coreModule) { _ModuleManeger = new ModuleManeger(); _ModuleManeger.TimesHasChanged += OnTimesHasChanged; _ModuleManeger.ModulesHasChanged += OnProjectHasChanged; // _FileManager.FileListHasChanged += OnFileListChanged; AddModule(coreModule); }
// Serializing //---------------------------------------------------------------------------------------- public Project(SerializationInfo info, StreamingContext context) { if (info == null) { throw new System.ArgumentNullException("info"); } _ModuleManeger = (ModuleManeger)info.GetValue("ModuleManeger", typeof(ModuleManeger)); _FileManager = (FileManeger)info.GetValue("FileManeger", typeof(FileManeger)); _ModuleManeger.TimesHasChanged += OnTimesHasChanged; _ModuleManeger.ModulesHasChanged += OnProjectHasChanged; _ProjectName = (string)info.GetValue("ProjectName", typeof(string)); _ProjectCompletePath = (string)info.GetValue("ProjectPath", typeof(string)); _projectDone = (bool)info.GetValue("ProjectDone", typeof(bool)); _Notes = (string)info.GetValue("Notes", typeof(string)); _Priority = (int)info.GetValue("Priority", typeof(int)); _ID = (int)info.GetValue("ID", typeof(int)); }