public MarkdownExporter(string file, Core core) { this.core = core; this.file = file; }
public Matchmaker(Core core) { this.core = core; }
private void openTemp() { if (currentFile != null) { Core = new Core(currentFile+".bak"); core.openPlayers(); actualizeCheckedListPlayer(); core.computeRanks(); saved(); cancelLastValidationToolStripMenuItem.Enabled = false; } }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.Filter = "All files (*.*)|*.*|SC2 Matchmaker profile (*.sc2mp)|*.sc2mp"; openFileDialog1.FilterIndex = 2; openFileDialog1.RestoreDirectory = true; cancelLastValidationToolStripMenuItem.Enabled = false; if (openFileDialog1.ShowDialog() == DialogResult.OK) { try { if ((currentFile = openFileDialog1.FileName) != null) { Core = new Core(currentFile); core.openPlayers(); actualizeCheckedListPlayer(); core.computeRanks(); saved(); } } catch (Exception ex) { MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message); } } }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { Core = new Core(); cancelLastValidationToolStripMenuItem.Enabled = false; currentFile = null; checkedListBoxHumanPlayers.Items.Clear(); }