//button back private void button_back_Click(object sender, RoutedEventArgs e) { Window tmp = new inpersonalArea(helperID); tmp.ShowDialog(); this.Close(); }
//button private void button_back_Click(object sender, RoutedEventArgs e) { int y = HostingUnit1.Owner.HostKey; this.Close(); Window tmp = new inpersonalArea(y); tmp.ShowDialog(); }
private void button_back_Click(object sender, RoutedEventArgs e) { HostingUnit h = MainWindow.bl.getHostingUnitByKey(o.HostingUnitKey); this.Close(); Window tmp = new inpersonalArea(h.Owner.HostKey); // Window tmp = new openWindow(); tmp.ShowDialog(); }
//Button private void b_update_Click(object sender, RoutedEventArgs e) { try { MainWindow.bl.updateOrderStatus(o, (orderStatus)cb_statustoUpdate.SelectedItem);//@@@@@@@@@@@222 BackgroundWorker backgroundWorker = new BackgroundWorker(); if ((orderStatus)cb_statustoUpdate.SelectedItem == orderStatus.emailSent) { backgroundWorker.DoWork += BackgroundWorker_DoWork; backgroundWorker.RunWorkerCompleted += BackgroundWorker_RunWorkerCompleted; backgroundWorker.RunWorkerAsync(); } MessageBox.Show("הסטטוס עודכן בהצלחה!", "העדכון הוצלח", MessageBoxButton.OK, MessageBoxImage.Information); this.Close(); HostingUnit hu = MainWindow.bl.getHostingUnitByKey(o.HostingUnitKey); Window tmp = new inpersonalArea(hu.Owner.HostKey); tmp.ShowDialog(); } catch (Exception x) { MessageBox.Show("אין אפשרות לשנות סטטוס כעת", "העדכון נכשל", MessageBoxButton.OK, MessageBoxImage.Error); } }