private string LoadFileXMLBaza() { OpenFileDialog dialog = new OpenFileDialog(); dialog.ShowDialog(); setting.loadfile = true; Baza = FilesEditor.LoadButlerFromXML(dialog.FileName); return(dialog.FileName); }
// robi butler WBF public void MakeButlerFromWBFRR() { if (!setting.loadfile) { Baza = new List <ButlerPlayer>(); } foreach (int r in setting.rounds) { string url = setting.url + r.ToString(); WBFReader reader = new WBFReader(url, setting.serwer, tournament_id, r); List <TablesButlerData> tablesData = reader.ReadWBFPage(); Calculator.CalculateImps(ref tablesData, setting.count_boards); BaseEditor.ObslugaBazy(ref Baza, tablesData); } FilesEditor.SaveButler(setting.save_as, Baza); MessageBox.Show("Done"); }