private void runConfigurationItem_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { try { navBarControl.Enabled = false; var userConfig = (GrabConfiguration)gv.GetFocusedRow(); var runConfigCommand = new RunConfiguration(); runConfigCommand.StatusChanged += OnStatusChanged; var p = runConfigCommand.Execute(userConfig, false); } catch (Exception ex) { Log.Error(string.Format("Failed to run configuration.{0}{1}", Environment.NewLine, ex.Message), ex); XtraMessageBox.Show(string.Format("Failed to run configuration.{0}{1}", Environment.NewLine, ex.Message), "Error"); } finally { navBarControl.Enabled = true; SplashManager.CloseSplashScreen(); } }