private void Button_Click(object sender, RoutedEventArgs e) { MainPageInfo.ErrorCallBackWindow fbw = new ErrorCallBackWindow(); fbw.vm_CallBackErrorInfoEditWindow.CallBackErrorModel.FbTime = DateTime.Now.Date; fbw.ShowDialog(); DataBinding(); }
private void editmenu_Click(object sender, RoutedEventArgs e) { MainPageInfo.ErrorCallBackWindow fbw = new ErrorCallBackWindow(); fbw.vm_CallBackErrorInfoEditWindow.CallBackErrorModel = FeedbackLbox.Items[FeedbackLbox.SelectedIndex] as AMS.Model.AMS_CallBackErrorInfo; fbw.vm_CallBackErrorInfoEditWindow.IsEdit = true; fbw.ShowDialog(); DataBinding(); }
private void watchmenu_Click(object sender, RoutedEventArgs e) { MainPageInfo.ErrorCallBackWindow fbw = new ErrorCallBackWindow(); fbw.vm_CallBackErrorInfoEditWindow.CallBackErrorModel = (FeedbackLbox.Items[FeedbackLbox.SelectedIndex] as AMS.ViewModel.ViewModelCallBackErrorInfoShow).CallBackErrorModel; fbw.vm_CallBackErrorInfoEditWindow.IsEdit = false; fbw.vm_CallBackErrorInfoEditWindow.GetStatus(); fbw.ShowDialog(); DataBinding(); }