static void MainX() { string result = RunProfile.Execute("2014 Proleague Overall.xml"); LiquipediaClientEx lpc = new LiquipediaClientEx(); lpc.Login("", ""); string token = lpc.GetEditToken(); lpc.EditPage("User:Xpaperclip/Carno/Proleague", result, "test", token); return; DataStore data = new DataStore(); DataStore.LoadRewriter("playerpka.dict", data.IdRewriter); DataStore.LoadRewriter("mapakas.dict", data.MapRewriter); data.Accumulate("http://wiki.teamliquid.net/starcraft2/2013_Global_StarCraft_II_Team_League_Season_2/Round_1"); PageGenerator pagegen = PageGenerator.FromXml(System.Xml.Linq.XDocument.Load("pages/Team League (All-Kill Format).xml")); string emit = pagegen.Emit(data); // push update UI.ShowDialog(new UIDocument("emit", emit), new UIDocument("html", LiquipediaClientEx.RequestParse(emit)), new UIDocument("xml", pagegen.Save().ToString())); }
private void runProfileButton_Click(object sender, EventArgs e) { using (var dlg = new OpenFileDialog()) { dlg.Filter = "Carno Profiles (*.xml)|*.xml"; if (dlg.ShowDialog() == DialogResult.OK) { Cursor.Current = Cursors.WaitCursor; string result = RunProfile.Execute(dlg.FileName); UI.ShowDialog(new UIDocument("Statistics", result)); Cursor.Current = Cursors.Default; } } }