Пример #1
0
 private void lvwList_DragDrop(object sender, DragEventArgs e)
 {
     if (e.Data.GetDataPresent(DataFormats.Text))
     {
         string text = e.Data.GetData(DataFormats.Text).ToString();
         if (LiquipediaClient.IsValidLiquipediaLink(text))
         {
             NewSource(text, true);
         }
     }
 }
Пример #2
0
 private void lvwList_DragEnter(object sender, DragEventArgs e)
 {
     if (e.Data.GetDataPresent(DataFormats.Text))
     {
         string text = e.Data.GetData(DataFormats.Text).ToString();
         if (LiquipediaClient.IsValidLiquipediaLink(text))
         {
             e.Effect = DragDropEffects.Link;
         }
         else
         {
             e.Effect = DragDropEffects.None;
         }
     }
     else
     {
         e.Effect = DragDropEffects.None;
     }
 }
Пример #3
0
        public void AccumulateParticipants(string page)
        {
            string wikicode = LiquipediaClient.GetWikicode(page);

            playerInfoMap.Merge(CarnoService.GetPlayerInfoFromParticipants(this, wikicode), true);
        }
Пример #4
0
        public void Accumulate(string page)
        {
            string wikicode = LiquipediaClient.GetWikicode(page);

            CarnoService.ProcessWikicode(wikicode, this);
        }