Ejemplo n.º 1
0
        private void CreateCanvasButton_Click(object sender, RoutedEventArgs e)
        {
            if (!int.TryParse(CanvasManagerPort.Text, out var port) || !IsValidIpAddress(CanvasManagerIpAddressTextBox.Text))
            {
                MessageBox.Show("Please enter a valid IP address and port.");
                return;
            }

            _adminClient.CanvasManagerIpAddress  = CanvasManagerIpAddressTextBox.Text;
            _adminClient.CanvasManagerPortNumber = Convert.ToInt32(CanvasManagerPort.Text);
            _adminClient.StartDispatcher(port);
            _adminClient.CreateCanvas();
        }