private void PrintProgramVersion(HttpServerVM vm)
        {
            string build = Properties.Resources.BuildDate;
            string date  = $"{build.Substring(2, 2)}{build.Substring(5, 2)}{build.Substring(8, 2)}";

            TbLog.Document.Blocks.Clear();
            Log($"eztrans-server v{date} by nanikit");
        }
        public MainWindow()
        {
            var vm = new HttpServerVM();

            DataContext = vm;
            InitializeComponent();

            PrintProgramVersion(vm);
            vm.Logs.CollectionChanged += LogVmItem;
            _ = vm.Restart();
        }