Ejemplo n.º 1
0
        private PriceChartPaneViewModel(AssetPair pair)
        {
            _debouncer = new DebouncerDispatched(UiDispatcher);
            _pair      = pair;

            Key        = _pair.ToString();
            Title      = _pair.ToString();
            CanClose   = true;
            IsActive   = true;
            IsSelected = true;

            OverviewZoom = new OverviewZoomViewModel(OverviewDefaultResolution);
            ReceiverZoom = new ReceiverZoomViewModel(ReceiverDefaultResolution);

            M.RegisterAsync <AssetPairDiscoveryResultMessage>(this, AssetPairDiscoveryResultMessage);
            M.SendAsync(new AssetPairDiscoveryRequestMessage(_pair));

            SetDataStatus("Provider Discovery", true);
        }
Ejemplo n.º 2
0
 public ChartViewModel(ChartGroupViewModel chart, ReceiverZoomViewModel zoom, bool showX = true)
 {
     ShowX   = showX;
     _parent = chart;
     _zoom   = zoom;
 }