示例#1
0
        private void RebuildAndRestart(object sender, EventArgs e)
        {
            Executable ex = sender as Executable;

            ex.ProcessExited -= RebuildAndRestart;
            ClearScannerDatabases(ex);
            ex.Start();
        }
示例#2
0
        private void StartButton_Click(object sender, RoutedEventArgs e)
        {
            Executable ex = GetItemExecutable(sender);

            if (ex is null)
            {
                return;
            }
            ex.Start();
        }
示例#3
0
        private void StartButton_Click(object sender, RoutedEventArgs e)
        {
            Executable executable = ((FrameworkElement)sender).DataContext as Executable;

            executable.Start();
        }
示例#4
0
 private void RebuildAndRestart(object sender, EventArgs e)
 {
     ScannerExecutable.ProcessExited -= RebuildAndRestart;
     ClearScannerDatabases();
     ScannerExecutable.Start();
 }