Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class WindowExtentsions {
- public static readonly Version AssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
- public static void SetTitle(this Window w,string s = "") {
- string nt = "CPU Performance " + AssemblyVersion.ToString();
- if(!string.IsNullOrWhiteSpace(s))
- w.Title = nt + " - " + s;
- else
- w.Title = nt;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment