Пример #1
0
 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();
Пример #2
0
 private static string GetExeInfo()
 {
     try   { return($"{CurrentExe.GetShortName()} v.{CurrentExe.GetVersion()}"); }
     catch { return(""); }
 }