Esempio n. 1
0
 private void button4_Click(object sender, EventArgs e)
 {
     try
     {
         inputData.Clear();
         var nameFile = InputGenerator.GenerateAbsolutelyRandomFile(false);
         var filePath = nameFile;
         inputData.ReadDataFromPath(filePath);
         textBox1.Text     = "(bin->debug)/" + nameFile;
         button3.Enabled   = true;
         button3.ForeColor = Color.Black;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 2
0
        private void button5_Click(object sender, EventArgs e)
        {
            try
            {
                inputData.Clear();
                button3.Enabled = false;
                this.Cursor     = System.Windows.Forms.Cursors.WaitCursor;
                var nameFile = InputGenerator.GenerateAbsolutelyRandomFile(true);
                var filePath = nameFile;
                inputData.ReadDataFromPath(filePath);
                button3.Enabled = true;
                this.Cursor     = Cursors.Default;

                textBox1.Text     = "(bin->debug)/" + nameFile;
                button3.Enabled   = true;
                button3.ForeColor = Color.Black;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }