public static void Show(string caption, string message, MessageBoxImage messageBoxImage = MessageBoxImage.Information, MessageBoxButton messageBoxButton = MessageBoxButton.OK) => new Thread(new ThreadStart(delegate { var longCap = $" {caption} [{DateTime.Now.ToShortTimeString()}] - {CurrentExe.GetShortName()} v.{CurrentExe.GetVersion()}"; MessageBox.Show(message, longCap, messageBoxButton, messageBoxImage); } )).Start();
private static string GetExeInfo() { try { return($"{CurrentExe.GetShortName()} v.{CurrentExe.GetVersion()}"); } catch { return(""); } }