상속: ForwardKn5ObjectRenderer
        public LiteShowroomWrapperWithTools(ToolsKn5ObjectRenderer renderer, CarObject car, string skinId) : base(renderer, car.DisplayName) {
            _helper = new AttachedHelper(this, new LiteShowroomTools(renderer, car, skinId));
            GoToNormalMode();

            renderer.VisibleUi = false;
            Form.Move += OnMove;
        }
예제 #2
0
 public LiteShowroomTools(ToolsKn5ObjectRenderer renderer, CarObject car, string skinId) {
     DataContext = new ViewModel(renderer, car, skinId);
     InputBindings.AddRange(new[] {
         new InputBinding(Model.PreviewSkinCommand, new KeyGesture(Key.PageUp)),
         new InputBinding(Model.NextSkinCommand, new KeyGesture(Key.PageDown)),
         new InputBinding(Model.Car.ViewInExplorerCommand, new KeyGesture(Key.F, ModifierKeys.Alt)),
         new InputBinding(Model.OpenSkinDirectoryCommand, new KeyGesture(Key.F, ModifierKeys.Control)),
         new InputBinding(new DelegateCommand(() => Model.Renderer?.Deselect()), new KeyGesture(Key.D, ModifierKeys.Control))
     });
     InitializeComponent();
     Buttons = new Button[0];
 }
예제 #3
0
 public void SetRenderer(ToolsKn5ObjectRenderer renderer) {
     Renderer = renderer;
 }