Exemplo n.º 1
0
    protected void CreateLinks_Clicked(object sender, EventArgs e)
    {
        if (SelectedView == ViewMode.LinkSuggestion)
        {
            List <int> linkSuggestionRefList = GetPostCollection("SuggestionCheckBox");

            LinkSuggestion.CreateLinksFromLinkSuggestionList(linkSuggestionRefList, false);
            LinkSuggestion.DeleteMany(linkSuggestionRefList);
        }
    }
Exemplo n.º 2
0
 protected void DeleteButton_Clicked(object sender, EventArgs e)
 {
     if (SelectedView == ViewMode.LinkSuggestion)
     {
         List <int> linkSuggestionRefList = GetPostCollection("SuggestionCheckBox");
         LinkSuggestion.DeleteMany(linkSuggestionRefList);
     }
     else if (SelectedView == ViewMode.LinkAdministration)
     {
         List <int> linkSuggestionRefList = GetPostCollection("LinkSelectionCheckBox");
         Link.DeleteMany(linkSuggestionRefList);
     }
 }