using System.Collections.Generic; using System.Windows; public class UniqueWindow { private static readonly List<Window> windows = new(); pu
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> if (Build.VERSION.SdkInt >= BuildVersionCodes.M) { Powe
public const string CHANNEL_ID = "default_channel"; public const string CHANNEL_NAME = "Default Channel"; public const int NOTIFICATION_ID = 10000; p
public static async Task<List<string>> PingIPs(List<string> ips, int timeout = 1000) { var tasks = ips.Select(ip => new Ping().SendPingAsync(ip, t
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net8.0-windows</TargetFramework> <Nu