public MainWindow()
        {
            InitializeComponent();

            Logger.Instance.Level = ELogLevel.INFO;

            keyActions = new Action[(byte)EKey.Count] {
                Up, Down, Left, Right, In, Out
            };
            timer = new DispatcherTimer()
            {
                Interval = TimeSpan.FromMilliseconds(40)
            };
            timer.Tick += Timer_Tick;

            client  = new PubSubClient();
            drawing = new NetworkModelDrawing()
            {
                NetworkModel = client.Model, Topology = client.Topology, Measurements = client.Measurements
            };
            client.Subscribe(this);
            client.Reconnect();
            client.Download();

            canvas.Focus();
        }
 private void menuItemRefresh_Click(object sender, RoutedEventArgs e)
 {
     client.Reconnect();
     client.Download();
 }