private void Add_Button_Click(object sender, RoutedEventArgs e) { InspectionPageInfo tmp = new InspectionPageInfo(); InspectionDetailWindow subWindow = new InspectionDetailWindow(tmp, true); subWindow.Owner = this; subWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner; subWindow.ShowDialog(); if (tmp.PageName != string.Empty || tmp.Url != string.Empty) { inspectionPageInfoList.Add(tmp); } }
private void Edit_ListViewItem() { InspectionPageInfo item = InspectionPageInfoList_ListView.SelectedItem as InspectionPageInfo; if (item == null) { MessageBox.Show("선택된 항목이 없습니다.", "Error", MessageBoxButton.OK, MessageBoxImage.Error); } else { InspectionDetailWindow subWindow = new InspectionDetailWindow(item, true); subWindow.Owner = this; subWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner; subWindow.ShowDialog(); } }