public PartsPalette() { _settings = DependencyInjection.Resolve<IReadOnlySettings>(); _partSelector = new PartSelector(X, Y, YIncrement); _swapUpButton = new SwapUpButton(X + 100, Y + SwapButtonsYAddition); _swapDownButton = new SwapDownButton(X + 120, Y + SwapButtonsYAddition); _mirrorButton = new MirrorButton(X + 140, Y); _resetButton = new ResetButton(X + 162, Y); _deleteButton = new DeleteButton(X + 180, Y); _settings.SelectedPartChanged += UpdateSelectedPartOptions; UpdateSelectedPartOptions(); }
public PartsPalette() { _settings = DependencyInjection.Resolve <IReadOnlySettings>(); _partSelector = new PartSelector(X, Y, YIncrement); _swapUpButton = new SwapUpButton(X + 100, Y + SwapButtonsYAddition); _swapDownButton = new SwapDownButton(X + 120, Y + SwapButtonsYAddition); _mirrorButton = new MirrorButton(X + 140, Y); _resetButton = new ResetButton(X + 162, Y); _deleteButton = new DeleteButton(X + 180, Y); _settings.SelectedPartChanged += UpdateSelectedPartOptions; UpdateSelectedPartOptions(); }