Esempio n. 1
0
 private void IconClose_Click(object sender, RoutedEventArgs e)
 {
     currentOrder.OrderStatus = Enums.OrderStatus.Closed;
     bL.updateOrder(currentOrder);
     OrderFilter(this, new RoutedEventArgs());
     MessageBox.Show("ההזמנה נסגרה בהצלחה");
 }
Esempio n. 2
0
        private void SendButton_Click(object sender, RoutedEventArgs e)
        {
            progressBar.Visibility = Visibility.Visible;

            //hostingUnit.DetailedAddr = tbxaddress.Text;
            //hostingUnit.AnotherPhoneNumber = tbxphone.Text;
            //hostingUnit.DetailsForGuest = tbxmessage.Text;
            //bL.updateHostingUnit(hostingUnit);

            BackgroundWorker MailWorker = new BackgroundWorker();

            MailWorker.DoWork += (se, args) =>
            {
                bL.updateOrder(currentOrder);
            };
            MailWorker.RunWorkerCompleted += (se, args) =>
            {
                DialogResult = true;
                this.Close();
            };
            MailWorker.RunWorkerAsync();
        }