public MarkdownExporter(string file, Core core)
 {
     this.core = core;
     this.file = file;
 }
Example #2
0
 public Matchmaker(Core core)
 {
     this.core = core;
 }
Example #3
0
 private void openTemp()
 {
     if (currentFile != null)
     {
         Core = new Core(currentFile+".bak");
         core.openPlayers();
         actualizeCheckedListPlayer();
         core.computeRanks();
         saved();
         cancelLastValidationToolStripMenuItem.Enabled = false;
     }
 }
Example #4
0
        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);
                }
            }
        }
Example #5
0
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Core = new Core();
     cancelLastValidationToolStripMenuItem.Enabled = false;
     currentFile = null;
     checkedListBoxHumanPlayers.Items.Clear();
 }