public AlgoTradingWindow() { InitializeComponent(); InitAma(); UserControlWelcome userControlWelcome = new UserControlWelcome(); this.ContentControl.Content = userControlWelcome; }
private void TurnAMAOff() { try { UserControlWelcome userControlWelcome = new UserControlWelcome(); this.ContentControl.Content = userControlWelcome; this.ButtonAma.Background = Brushes.Red; MessageBoxResult popup = MessageBox.Show("The Auto Agent has stopped working", "Automatic Market Agent"); _amaThread.Abort(); } catch { return; } }