Formatting
This commit is contained in:
parent
bb47fd96fc
commit
3f0c0bf7b8
@ -178,11 +178,12 @@ public class Blur
|
||||
WindowInfo windowInfo = windowManager.WindowInfos.FirstOrDefault(w => w.WindowHandle == windowHandle);
|
||||
if (windowInfo.WindowHandle is 0x0)
|
||||
continue;
|
||||
prnt += $"{++i,3} {windowInfo}\n";
|
||||
prnt += $"{++i,3} | {windowInfo}\n";
|
||||
}
|
||||
|
||||
Console.WriteLine(prnt);
|
||||
Console.WriteLine($"Z-order changed {DateTime.UtcNow:O}");
|
||||
Console.WriteLine($"{"Z",3} | {"hWnd",8} | {"PID",8} | {"Name",17} | {"Window Title",-17} | {"Vis",-8} | {"State",-13} | Rectangle");
|
||||
Console.WriteLine(prnt);
|
||||
UpdateBlurs(zOrder: neworder);
|
||||
}
|
||||
|
||||
@ -191,8 +192,8 @@ public class Blur
|
||||
string prnt = "";
|
||||
foreach (WindowInfo windowInfo in after)
|
||||
prnt += $"{windowInfo}\n";
|
||||
Console.WriteLine(prnt);
|
||||
Console.WriteLine($"Windows changed {DateTime.UtcNow:O}");
|
||||
Console.WriteLine(prnt);
|
||||
UpdateBlurs(windowInfos: after);
|
||||
}
|
||||
|
||||
|
@ -47,6 +47,6 @@ public struct WindowInfo
|
||||
const int cutoffStr = 17;
|
||||
string processNameStr = ProcessInfo.ProcessName.Substring(0, Math.Min(cutoffStr, ProcessInfo.ProcessName.Length));
|
||||
string windowTitleStr = WindowTitle.Substring(0, Math.Min(cutoffStr, WindowTitle.Length));
|
||||
return $"{WindowHandle,8} {ProcessInfo.Id,8} {processNameStr,cutoffStr} {windowTitleStr,-cutoffStr} {(IsVisible ? "visible" : "hidden"),-8} {WindowCommands,-13} {WindowRectangle}";
|
||||
return $"{WindowHandle,8} | {ProcessInfo.Id,8} | {processNameStr,cutoffStr} | {windowTitleStr,-cutoffStr} | {(IsVisible ? "visible" : "hidden"),-8} | {WindowCommands,-13} | {WindowRectangle}";
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user