/// <summary>Update UI elements</summary> private void UpdateUI(object sender = null, EventArgs args = null) { m_btn_active_trades.Checked = Bit.AllSet(Settings.UI.ShowTrades, Trade.EState.ActivePosition); m_btn_pending_orders.Checked = Bit.AllSet(Settings.UI.ShowTrades, Trade.EState.PendingOrder); m_btn_visualising_orders.Checked = Bit.AllSet(Settings.UI.ShowTrades, Trade.EState.Visualising); m_btn_closed_orders.Checked = Bit.AllSet(Settings.UI.ShowTrades, Trade.EState.Closed); m_grid.Invalidate(); }