示例#1
0
 public CustomerItemViewModel(string name, string surname, SetFocus focusDel)
 {
     CustomerId       = Id++;
     Name             = name;
     Surname          = surname;
     _focusDel        = focusDel;
     IntroduceCommand = new DelegateCommand(IntroduceMe, CanExecute);
 }
示例#2
0
 private void SetTabPassFocus()
 {
     if (this.buttonPass.InvokeRequired)
     {
         SetFocus dx = new SetFocus(SetTabPassFocus);
         this.Invoke(dx, new object[] { });
     }
     else
     {
         buttonPass.Focus();
     }
 }
示例#3
0
 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);
 }
示例#4
0
 private void SetTabPassFocus()
 {
     if (this.buttonPass.InvokeRequired)
     {
         SetFocus dx = new SetFocus(SetTabPassFocus);
         this.Invoke(dx, new object[] { });
     }
     else
     {
         buttonPass.Focus();
     }
 }