public static void RunWriteRead() { Thread thread = _thread; OnlineBooking.RunWrite(); _thread = thread; OnlineBooking.RunRead(); }
public static void RunThreadWriteAsk() { if (Program.Form.InvokeRequired) { Program.Form.Invoke(new Action(RunThreadWriteAsk)); return; } DialogResult result = MessageBox.Show( Program.Form, "Zurücksetzen erfolgreich. Möchten Sie jetzt die Daten neu Senden?", "Online Buchungen", MessageBoxButtons.YesNo, MessageBoxIcon.Question ); if (result == DialogResult.Yes) { OnlineBooking.RunThreadWrite(); } }
private void buttonBookingRemoveAva_Click(object sender, EventArgs e) { OnlineBooking.RunThreadReset(); }
private void cmdRunRead_Click(object sender, EventArgs e) { OnlineBooking.RunThreadRead(); }
private void cmdRunWrite_Click(object sender, EventArgs e) { OnlineBooking.RunThreadWrite(); }
private void timerRead_Tick(object sender, EventArgs e) { OnlineBooking.RunThreadWriteRead(); }
private void cmdStart_Click(object sender, EventArgs e) { OnlineBooking.StopThread(); }