示例#1
0
 public void CancelForum(SuperManager superManager, Forum f)
 {
     if ((superManager == this.SuperManager))
     {
         rep.Remove <Forum>(f);
     }
 }
示例#2
0
        public ForumSystemImpl(String username, String pass, String mail, String fullname, String db)
        {
            this.SuperManager = new SuperManager(username, pass, mail, fullname);
            PolicyInterface p = new Policy(10);

            activeSuper = false;
            // this.AllPolicy = new List<PolicyInterface>();
            // this.AllForum = new List<Forum>();

            this.database = db;
            load();
            rep.Add <PolicyInterface>(p);
        }