Esempio n. 1
0
 public KnowledgeBaseInfo()
 {
     this.Author         = "";
     this.Copyright      = "";
     this.License        = "";
     this.AuthorWebsite  = "";
     this.CreationDate   = System.DateTime.Now;
     this.LastUpdateDate = System.DateTime.Now;
     this.Rating         = new KnowledgeBaseRating();
     this.Language       = LanguageType.French;
     this.Category       = CategoryType.Other;
     this.Comment        = "";
 }        //KnowledgeBaseInfo
Esempio n. 2
0
        }        //KnowledgeBaseInfo

        protected KnowledgeBaseInfo(SerializationInfo info, StreamingContext context)
        {
            this.Author         = (string)info.GetString("a");
            this.Copyright      = (string)info.GetString("copy");;
            this.License        = (string)info.GetString("lic");;
            this.AuthorWebsite  = (string)info.GetString("aw");
            this.CreationDate   = (System.DateTime)info.GetValue("cd", typeof(System.DateTime));
            this.LastUpdateDate = (System.DateTime)info.GetValue("lud", typeof(System.DateTime));
            this.Rating         = (KnowledgeBaseRating)info.GetValue("r", typeof(KnowledgeBaseRating));
            this.Language       = (LanguageType)info.GetValue("lang", typeof(LanguageType));
            this.Category       = (CategoryType)info.GetValue("cat", typeof(CategoryType));
            this.Comment        = info.GetString("comment");
            //use a try/catch block around any new vales
        }