public void StockWidthChanged(object sender, ExecutedRoutedEventArgs e) { try { double newWidth = (double)e.Parameter; lock (_kernelTerminal.StockVisualConf) _kernelTerminal.StockVisualConf.ListStocksVisual[StockNum].WidthStock = newWidth; _kernelTerminal.SaveVisualConf(); } catch (Exception exc) { Error("MarketViewModel.StockWidthChanged", exc); } }