private void Form1_Load(object sender, EventArgs e) { _StatusUpdate = Properties.Settings.Default.StatusUpdateInt; _OrderUpdate = Properties.Settings.Default.OrderUpdateInt; _StatusDelay = Properties.Settings.Default.StatusDelayInt; OrderUpdateToolStripTextBox.Text = _OrderUpdate.ToString(); StatusUpdateToolStripTextBox.Text = _StatusUpdate.ToString(); DelayUpdateToolStripTextBox.Text = _StatusDelay.ToString(); CheckForIllegalCrossThreadCalls = false; OrderUpdateTimer.Enabled = true; OrderUpdateTimer.Interval = _OrderUpdate; OrderUpdateTimer.Start(); StatusUpdateTimer.Enabled = true; StatusUpdateTimer.Interval = _StatusUpdate; StatusUpdateTimer.Start(); statusLabel1.Text = "Trade Bot Online"; SetAdminButtons(admin.IsAdmin); admin.ReportLiveStatus(true); AlsiUtils.WebSettings.GetSettings(); orderUpdateIntervalMsToolStripMenuItem.Visible = admin.IsAdmin; statusUpdateDelaySecToolStripMenuItem.Visible = admin.IsAdmin; statusUpdateIntervalMsToolStripMenuItem.Visible = admin.IsAdmin; LoadChat(); }
private void getAllOrderToolStripMenuItem_Click(object sender, EventArgs e) { OrderUpdateTimer.Stop(); getAllorders(); OrderUpdateTimer.Start(); }