private void registerMessenger()
        {
            Messenger.Default.Send<string>("", "SendJobToDetail");
            Messenger.Default.Register<string>(this, "AddJobStatus",
               empty =>
               {
               PopupCotainer popupContainer = new PopupCotainer(this);
               popupContainer.Show(new InputDialog());
               }
               );
            Messenger.Default.Register<string>(this, "setRemindCompleted", (s) =>
            {
                Job_SetRemind_Up.Begin();
                isSetRemindVisible = !isSetRemindVisible;
            });
            Messenger.Default.Register<string>(this, "changeStatus", (s) =>
            {
                Job_ChangeStatus_Down.Begin();
                isChangeStatusVisible = !isChangeStatusVisible;
            });
            Messenger.Default.Register<string>(this, "ChangeStatusCompleted", (s) =>
            {
                Job_ChangeStatus_Up.Begin();
                isChangeStatusVisible = !isChangeStatusVisible;
                tbk_status.Text = s;
            });
            Messenger.Default.Register<string>(this, "JobDetailShareCompleted", (s) =>
            {
                Job_Share_Up.Begin();
                isJobShareVisible = !isJobShareVisible;

            });
            Messenger.Default.Register<string>(this, "NavigateToLoginPage", (s) =>
            {
                NavigationService.Navigate(new Uri("/View/LoginPage.xaml", UriKind.Relative));
            });
            Messenger.Default.Register<string[]>(this, "JobDetailChangeAddress", (s) =>
            {
                tbox_university.Text = s[0];
                tbox_address.Text = s[1];
            });
            Messenger.Default.Register<string>(this, "SetDateTimeCompleted", (msg) =>
            {
                if (msg.Equals("ok"))
                {
                    datePicker.Value = job_ChangeDateTimeDialog.datePicker.Value;
                    timePicker.Value = job_ChangeDateTimeDialog.timePicker.Value;
                }
                isJobChangeDateTimeDialogVisible = !isJobChangeDateTimeDialogVisible;
                Job_ChangeDateTimeDialog_Up.Begin();
                // PopupCotainer popupContainer = new PopupCotainer(this);

                //control.datePicker.Value = datePicker.Value;
                //control.timePicker.Value = timePicker.Value;

            });

            Messenger.Default.Register<string>(this, "job_detail", (s) =>
            {
                if (!s.StartsWith("http"))
                {
                    DispatcherHelper.CheckBeginInvokeOnUI(() =>
                    {
                        webBrowser.NavigateToString(Unicode2HTML(s));
                        webBrowser.Visibility = Visibility.Visible;
                        btnSeeDetailInBrowser.Visibility = Visibility.Collapsed;
                    });
                }
                else
                {
                    DispatcherHelper.CheckBeginInvokeOnUI(() =>
                    {

                        webBrowser.Visibility = Visibility.Collapsed;
                        btnSeeDetailInBrowser.Visibility = Visibility.Visible;

                    });
                }
            });
        }
        private void btn_address_edit_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            if (!detailJob.IsCollected)
            {
                if (MessageBox.Show("该宣讲会还未收藏,您在更改地址前是否先收藏", "提示", MessageBoxButton.OKCancel) == MessageBoxResult.OK)
                {
                    Messenger.Default.Send<string>(detailJob.JobId, "CollectJob");

                    detailJob.IsCollected = true;
                    btn2.Text = "取消收藏";

                }
                else return;
            }
            PopupCotainer popupContainer = new PopupCotainer(this);
            TwoInputDialog control = new TwoInputDialog();
            control.tb_addressDetail.Text = tbox_address.Text;
            control.tb_university.Text = tbox_university.Text;
            popupContainer.Show(control);
        }