示例#1
0
 public static void deleteUser(int index)
 {
     users.RemoveAt(index);
     Helper.saveUsers(users);
 }
示例#2
0
 public static void addArticle(Article article)
 {
     articles.Add(article);
     Helper.saveArticles(articles);
 }
示例#3
0
 public static void addArticlePreview(Article articlePrev)
 {
     articlesPreview.Add(articlePrev);
     Helper.saveArticlesPreview(articlesPreview);
 }
示例#4
0
 public static void deleteArticle(int index)
 {
     articles.RemoveAt(index);
     Helper.saveArticles(articles);
 }