Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();
            DataContext = new UserViewModel();

            var timer = new System.Threading.Timer((e) =>
            {
                MyMethod();
            }, null, 0, 60);
        }
Beispiel #2
0
 public RegWindow()
 {
     InitializeComponent();
     DataContext = new UserViewModel();
 }