Пример #1
0
        public StartUpViewModel()
        {
            IsConnecting = true;

            Domains             = new ObservableCollection <Domain>(AppSettings.Domains);
            NavigateCommand     = new Command <string>(NavigateCommandHandler);
            SelectedHostCommand = new Command <string>(SelectedHostCommandHandler);

            Task.Run(async() =>
            {
                BaseServices baseServices = new BaseServices();
                foreach (Domain domain in Domains)
                {
                    domain.IsActive = await baseServices.CheckConnection(domain.ToString());
                }
                IsConnecting = false;
            });
        }