Esempio n. 1
0
        private void buttonOpen_Click(object sender, EventArgs e)
        {
            openFileDialog1.ShowDialog();
            osuFile.Text = openFileDialog1.FileName;
            try {
                osbFile.Text = osuFile.Text.Substring(0, osuFile.Text.LastIndexOf(" [")) + ".osb";
                osu = new Osu(osuFile.Text, osbFile.Text, logBox);
                if (osu.Init()) {
                    numericUpDownAR.Value = oar = (decimal)osu.ar;
                    numericUpDownCS.Value = ocs = (decimal)osu.cs;
                    buttonStart.Enabled = true;
                }
            }
            catch {

            }
        }
Esempio n. 2
0
 private void buttonOpen_Click(object sender, EventArgs e)
 {
     openFileDialog1.ShowDialog();
     osuFile.Text = openFileDialog1.FileName;
     try {
         osbFile.Text = osuFile.Text.Substring(0, osuFile.Text.LastIndexOf(" [")) + ".osb";
         osu          = new Osu(osuFile.Text, osbFile.Text, logBox);
         if (osu.Init())
         {
             numericUpDownAR.Value = oar = (decimal)osu.ar;
             numericUpDownCS.Value = ocs = (decimal)osu.cs;
             buttonStart.Enabled   = true;
         }
     }
     catch {
     }
 }