private void lnk_attached_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { ProcessSelector selector = new ProcessSelector(); DialogResult selected = selector.ShowDialog(); if (selected == DialogResult.OK) { startScanning(); } }
private void DungeonTeller_Shown(object sender, EventArgs e) { settings.TimesRun++; lockToBottomRight(); if (Properties.Settings.Default.CheckForUpdates) { Updater updater = new Updater(); updater.ShowDialog(); } ProcessSelector selector = new ProcessSelector(); DialogResult selected = selector.ShowDialog(); if (selected == DialogResult.OK) { startScanning(); } }