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(); }
private void deletemenu_Click(object sender, RoutedEventArgs e) { MessageBoxWindow mbw = new MessageBoxWindow(); mbw.vm_MessageBoxWindow = new AMS.ViewModel.ViewModelMessageBoxWindow(AMS.Model.Enum.MessageBoxType.Warning, "是否删除这个信息?"); mbw.ShowDialog(); if (mbw.vm_MessageBoxWindow.Result) { MainPageInfo.ErrorCallBackWindow fbw = new ErrorCallBackWindow(); fbw.vm_CallBackErrorInfoEditWindow.CallBackErrorModel = (FeedbackLbox.Items[FeedbackLbox.SelectedIndex] as AMS.ViewModel.ViewModelCallBackErrorInfoShow).CallBackErrorModel; fbw.vm_CallBackErrorInfoEditWindow.Delete(); DataBinding(); } }