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); } } }
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; } }
public void AccumulateParticipants(string page) { string wikicode = LiquipediaClient.GetWikicode(page); playerInfoMap.Merge(CarnoService.GetPlayerInfoFromParticipants(this, wikicode), true); }
public void Accumulate(string page) { string wikicode = LiquipediaClient.GetWikicode(page); CarnoService.ProcessWikicode(wikicode, this); }