static void Main(string[] args) { ExportClient client = new ExportClient("mt5"); client.TickRecieved += client_TickRecieved; client.Open(); Console.WriteLine("Connected to server... Press ant key to exit"); Console.ReadKey(); client.Close(); }
void _ConnectionTimer_Tick(object sender, EventArgs e) { try { _Client.Open(); _ConnectionTimer.Stop(); Text = "Quotes table"; UpdateSymbols(); } catch { } }