public Server(ServerSelection aPage, string aName, string aDescription, Uri aUri)
            {
                mPage = aPage;

                Name = aName;
                Description = aDescription;
                Uri = aUri;
                IsOnline = false;
                Version = "?";

                var wc = new WebClient();
                wc.DownloadStringCompleted += OnServerAnswer;
                wc.DownloadStringAsync(new Uri(aUri, "static/version?q=" + Environment.TickCount));

                ConnectCommand = new Framework.DelegateCommand(OnConnect);
                ConnectAndSetDefaultCommand = new Framework.DelegateCommand(OnConnectAndSetDefault);
                AddCommand = new Framework.DelegateCommand(OnAdd);
                RemoveCommand = new Framework.DelegateCommand(OnRemove);
            }
Пример #2
0
            public Server(ServerSelection aPage, string aName, string aDescription, Uri aUri)
            {
                mPage = aPage;

                Name        = aName;
                Description = aDescription;
                Uri         = aUri;
                IsOnline    = false;
                Version     = "?";

                var wc = new WebClient();

                wc.DownloadStringCompleted += OnServerAnswer;
                wc.DownloadStringAsync(new Uri(aUri, "static/version?q=" + Environment.TickCount));

                ConnectCommand = new Framework.DelegateCommand(OnConnect);
                ConnectAndSetDefaultCommand = new Framework.DelegateCommand(OnConnectAndSetDefault);
                AddCommand    = new Framework.DelegateCommand(OnAdd);
                RemoveCommand = new Framework.DelegateCommand(OnRemove);
            }