// load window async void Window_Loaded(object sender, RoutedEventArgs e) { if (!Settings.GetValue <bool>("eulaAccepted")) { if (MessageBox.Show(Res.GetStr("smcAgreeEula"), Res.GetStr("smtAgreeEula"), MessageBoxButton.YesNo, MessageBoxImage.Information) != MessageBoxResult.Yes) { Close(); return; } Settings.SetValue("eulaAccepted", true); } reloadServers(); canOpenPorts = await PortManager.Init(); }