public CustomerItemViewModel(string name, string surname, SetFocus focusDel) { CustomerId = Id++; Name = name; Surname = surname; _focusDel = focusDel; IntroduceCommand = new DelegateCommand(IntroduceMe, CanExecute); }
private void SetTabPassFocus() { if (this.buttonPass.InvokeRequired) { SetFocus dx = new SetFocus(SetTabPassFocus); this.Invoke(dx, new object[] { }); } else { buttonPass.Focus(); } }
public MainWindow() { InitializeComponent(); setCameraPosition = new SetCameraPosition(SetPosition); setModelColor = new SetModelColor(ViewControl.SetColor); setFocus = new SetFocus(SetViewportFocus); device3D = new ModelVisual3D(); device3D.Content = Display3d(MODEL_PATH); device3D.SetName("worldModel"); // Add to view port viewport.Children.Add(device3D); }