private async void InitSwitcher()
        {
            // certificate init
            await CheckSertificate();

            // load server ip
            var serverIp = await GeneralHelper.GetKawataAddressAsync();

            if (serverIp == string.Empty)
            {
                MessageBox.Show("You Shouldn't see this" + Environment.NewLine +
                                "Stored IP address will be used");
                serverIp = Constants.KawataHardcodedIp;
            }
            serverSwitcher = new ServerSwitcher(serverIp);

            // switcher init
            await CheckServer();
        }
Ejemplo n.º 2
0
        private async void InitSwitcher()
        {
            // certificate init
            await CheckSertificate();

            // load server ip
            var serverIp = await GeneralHelper.GetKawataAddressAsync();

            if (serverIp == string.Empty)
            {
                MessageBox.Show("An error occurred while retrieving Kawata's IP. Maybe check your Internet connection?" + Environment.NewLine +
                                "Stored IP address will be used");
                serverIp = Constants.KawataHardcodedIp;
            }
            serverSwitcher = new ServerSwitcher(serverIp);

            // switcher init
            await CheckServer();
        }