////////////request//////////////////// public void OpenEditRequestWindow(object obj) { editRequestwindow = new EditRequestWindow("", this); editRequestwindow.Owner = Application.Current.MainWindow; txt_requestTitle = ""; OnPropertyChanged("txt_requestTitle"); editRequestwindow.ShowDialog(); }
public void OpenShowRequestWindow(object obj) { if (obj != null) { Console.Write(obj); MyListBoxItem listBoxitem = obj as MyListBoxItem; string title = listBoxitem.content; string fileTostring = mainModel.LoadRequest(title); editRequestwindow = new EditRequestWindow(fileTostring, this); editRequestwindow.Owner = Application.Current.MainWindow; txt_requestTitle = title; OnPropertyChanged("txt_requestTitle"); editRequestwindow.ShowDialog(); } }