private void RunSystemDownloadButton_Click(object sender, RoutedEventArgs e) { UpdateWindow lUpdateWind = new UpdateWindow("Update In Progress", "Please wait as the application updates the database"); CommandProcessor lCommandProc = new CommandProcessor(); Thread lSysUp = new Thread( () => lCommandProc.SystemUpdate(lUpdateWind, gSession.Server, gSession.POSInfo)); lSysUp.Start(); lUpdateWind.ShowDialog(); }