コード例 #1
0
 private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (dw == null)
     {
         dw = new DetailWindow(vm)
         {
             Owner = this,
             WindowStartupLocation = WindowStartupLocation.CenterOwner
         };
         dw.Closed += DW_Closed;
         dw.Show();
     }
 }
コード例 #2
0
 private void DW_Closed(object sender, System.EventArgs e) => dw = null;