예제 #1
0
        public static void RunWriteRead()
        {
            Thread thread = _thread;

            OnlineBooking.RunWrite();
            _thread = thread;

            OnlineBooking.RunRead();
        }
예제 #2
0
        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();
            }
        }
예제 #3
0
 private void buttonBookingRemoveAva_Click(object sender, EventArgs e)
 {
     OnlineBooking.RunThreadReset();
 }
예제 #4
0
 private void cmdRunRead_Click(object sender, EventArgs e)
 {
     OnlineBooking.RunThreadRead();
 }
예제 #5
0
 private void cmdRunWrite_Click(object sender, EventArgs e)
 {
     OnlineBooking.RunThreadWrite();
 }
예제 #6
0
 private void timerRead_Tick(object sender, EventArgs e)
 {
     OnlineBooking.RunThreadWriteRead();
 }
예제 #7
0
 private void cmdStart_Click(object sender, EventArgs e)
 {
     OnlineBooking.StopThread();
 }