public MarketMakerBotUi(MarketMakerBot strategy) { InitializeComponent(); _strategy = strategy; ComboBoxRegime.Items.Add(BotTradeRegime.Off); ComboBoxRegime.Items.Add(BotTradeRegime.On); ComboBoxRegime.Items.Add(BotTradeRegime.OnlyClosePosition); ComboBoxRegime.Items.Add(BotTradeRegime.OnlyLong); ComboBoxRegime.Items.Add(BotTradeRegime.OnlyShort); ComboBoxRegime.SelectedItem = _strategy.Regime; TextBoxVolumeOne.Text = _strategy.Volume.ToString(); TextBoxSpreadBeetwenLine.Text = _strategy.PersentToSpreadLines.ToString(); CheckBoxNeadToPaint.IsChecked = _strategy.PaintOn; }
public MarketMakerBotUi(MarketMakerBot strategy) { InitializeComponent(); _strategy = strategy; ComboBoxRegime.Items.Add(BotTradeRegime.Off); ComboBoxRegime.Items.Add(BotTradeRegime.On); ComboBoxRegime.Items.Add(BotTradeRegime.OnlyClosePosition); ComboBoxRegime.Items.Add(BotTradeRegime.OnlyLong); ComboBoxRegime.Items.Add(BotTradeRegime.OnlyShort); ComboBoxRegime.SelectedItem = _strategy.Regime; TextBoxVolumeOne.Text = _strategy.Volume.ToString(); TextBoxSpreadBeetwenLine.Text = _strategy.PersentToSpreadLines.ToString(); CheckBoxNeadToPaint.IsChecked = _strategy.PaintOn; LabelRegime.Content = OsLocalization.Trader.Label115; LabelVolume.Content = OsLocalization.Trader.Label30; LabelBetweenLines.Content = OsLocalization.Trader.Label130; CheckBoxNeadToPaint.Content = OsLocalization.Trader.Label131; ButtonAccept.Content = OsLocalization.Trader.Label117; }