private void ProcessListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { processDisplay selection = ((sender as ListBox).SelectedItem as processDisplay); main.emulationProcessName = selection.processName; System.Threading.Thread.Sleep(1000); Hide(); }
private void addProcess(processDisplay process) { if (!processDisplays.Select(proc => proc.processName) .Contains(process.processName)) { processDisplays.Add(process); } }