コード例 #1
0
        private void EditDetail(object sender, MouseButtonEventArgs e)
        {
            var editWindow = new DetailWindow((Detail)DetailList.SelectedItem);

            editWindow.ShowDialog();
            DetailList.Items.Refresh();
        }
コード例 #2
0
        private void CreateDetail(object sender, RoutedEventArgs e)
        {
            var detail     = new Detail("Empty Detail");
            var editWindow = new DetailWindow(detail);

            if (editWindow.ShowDialog() == true)
            {
                MainWindowsViewer.Details.Add(detail);
            }
        }