public StocklistConnectionListener(
     StocklistClient slClient,
     int phase)
 {
     this.slClient = slClient;
     this.phase    = phase;
 }
        public ChartQuotes(string item, string name, StocklistClient lsClient)
        {
            InitializeComponent();

            Console.WriteLine("Item for chart: " + item);

            this.item     = item;
            this.name     = name;
            this.lsClient = lsClient;

            double caso = rnd.NextDouble();

            if (caso < 0.33)
            {
                color = Color.DodgerBlue;
            }
            else if (caso < 0.66)
            {
                color = Color.DarkOrange;
            }
            else
            {
                color = Color.DarkGreen;
            }
        }
        public StocklistConnectionListener(
                StocklistClient slClient,
                int phase)
        {

            this.slClient = slClient;
            this.phase = phase;
        }
Exemplo n.º 4
0
        private void StartLightstreamer()
        {
            stocklistClient = new StocklistClient(
                pushServerUrl,
                this,
                new LightstreamerUpdateDelegate(OnLightstreamerUpdate),
                new LightstreamerStatusChangedDelegate(OnLightstreamerStatusChanged));


            stocklistClient.Start();
        }
Exemplo n.º 5
0
        public DemoForm(string pushServerHost, int pushServerPort ) {
            stocklistClient = null;
            blinkingCells = new ArrayList();
            blinkEnabled = true;
            blinkMenu = false;

            pushServerUrl = "http://" + pushServerHost + ":" + pushServerPort;

            Thread t = new Thread(new ThreadStart(DeblinkingThread));
            t.Start();

            InitializeComponent();
        }
Exemplo n.º 6
0
        public DemoForm(string pushServerHost, int pushServerPort)
        {
            stocklistClient = null;
            blinkingCells   = new ArrayList();
            blinkEnabled    = true;
            blinkMenu       = false;

            pushServerUrl = "http://" + pushServerHost + ":" + pushServerPort;

            Thread t = new Thread(new ThreadStart(DeblinkingThread));

            t.Start();

            InitializeComponent();
        }
        public DemoForm(string pushServerHost, int pushServerPort, string forceTransport)
        {
            stocklistClient = null;
            blinkingCells   = new ArrayList();
            blinkEnabled    = true;
            blinkMenu       = false;

            if (pushServerHost.StartsWith("http") || pushServerHost.StartsWith("HTTP"))
            {
                pushServerUrl = pushServerHost;
            }
            else
            {
                pushServerUrl = "http://" + pushServerHost + ":" + pushServerPort;
            }

            forceT = forceTransport;

            Thread t = new Thread(new ThreadStart(DeblinkingThread));

            t.Start();

            InitializeComponent();
        }
Exemplo n.º 8
0
        private void StartLightstreamer() {
            stocklistClient = new StocklistClient(
                pushServerUrl,
                this,
                new LightstreamerUpdateDelegate(OnLightstreamerUpdate),
                new LightstreamerStatusChangedDelegate(OnLightstreamerStatusChanged));

           
            stocklistClient.Start();
        }
        public StocklistHandyTableListener(StocklistClient slClient, int phase) {

            this.phase = phase;
            this.slClient = slClient;
        }
 public StocklistSubscriptionListener(StocklistClient slClient, int phase)
 {
     this.phase    = phase;
     this.slClient = slClient;
 }
 public StocklistHandyTableListener(StocklistClient slClient, int phase)
 {
     this.phase    = phase;
     this.slClient = slClient;
 }