private void Send_Click(object sender, RoutedEventArgs e) { var sendFilesWindow = new SendFilesWindow( ComputersTable.SelectedItems.Cast <Computer>().ToList() ); sendFilesWindow.Show(); openWindowCount++; sendFilesWindow.Closed += (o, args) => openWindowCount--; }
private void Send_Click(object sender, RoutedEventArgs e) { var sendFilesWindow = new SendFilesWindow( ComputersTable.SelectedItems.Cast<Computer>().ToList() ); sendFilesWindow.Show(); openWindowCount++; sendFilesWindow.Closed += (o, args) => openWindowCount--; }