private void btnProgram_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; //Ventana emergente Form formularioEmergente = new popUpProgramming(mode, numBytes, checkBox1.Checked, txtToSend.Text, sendPort); formularioEmergente.Show(); //Ahora la restauro this.WindowState = FormWindowState.Normal; Cursor.Current = Cursors.Default; }
private void btnProgram_Click(object sender, EventArgs e) { pbLoad.Value = 0; pbLoad.Maximum = 100; pFillTexttoSend(); __mode = cmbTypeProgram.Text; Cursor.Current = Cursors.WaitCursor; //Ventana emergente Form formularioEmergente = new popUpProgramming(__mode, __bytes, chkSendWidth.Checked, program2Send, ArduinoPort); __mode = cmbTypeProgram.Text; formularioEmergente.Show(); //Ahora la restauro this.WindowState = FormWindowState.Normal; Cursor.Current = Cursors.Default; /* * */ }