Torna al Thread

private void Delegate81GTS1(string[] frequency) { TestF(ref Test81GTS1, ref optionButton1, ref optionButton2, ref optionButton3, ref SI81GTS1, ref NO81GTS1, frequency[0], frequency[1], frequency[2], double.Parse(Time_81GTS1.Text) * 1.03 + 0.02, ref T81GTS1rilevato); } private void Test81GTS1_Click(object sender, EventArgs e) { Button Bt = (Button)sender; if (Bt.Text == "Annulla") { Interruzione(Bt, null/*new Exception("Prova interrotta dall'utente")*/); Form1_Pulsanti(Bt, "Time"); return; } else { Hz81GTS1impostata.Text = string.Format("{0:0.00}", End81GTS1step * Convert.ToDouble(Setting_81GTS1.Text)); Hz81GTS1impostata.Refresh(); string StartF = "" + (Start81GTS1step * double.Parse(Setting_81GTS1.Text)); StartF = StartF.Replace(',', '.'); string StopF = Hz81GTS1impostata.Text.Replace(',', '.'); string tStart = string.Format("{0:0.00}", Convert.ToDouble(Hz81GTS1impostata.Text) - 0.01).Replace(',', '.'); T81GTS1rilevato.Text = ""; if (Time_81GTS1.Text == "") { MessageBox.Show("Impossibile eseguire la prova se non viene inserito il valore del tempo guida", "ATTENZIONE", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } else { string[] data = { StartF, StopF, tStart }; prova = new Thread(Delegate81GTS1); prova.Start(data); } } }
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5