private void RebuildAndRestart(object sender, EventArgs e) { Executable ex = sender as Executable; ex.ProcessExited -= RebuildAndRestart; ClearScannerDatabases(ex); ex.Start(); }
private void StartButton_Click(object sender, RoutedEventArgs e) { Executable ex = GetItemExecutable(sender); if (ex is null) { return; } ex.Start(); }
private void StartButton_Click(object sender, RoutedEventArgs e) { Executable executable = ((FrameworkElement)sender).DataContext as Executable; executable.Start(); }
private void RebuildAndRestart(object sender, EventArgs e) { ScannerExecutable.ProcessExited -= RebuildAndRestart; ClearScannerDatabases(); ScannerExecutable.Start(); }