コード例 #1
0
        public TimeTrackingModel(TeamPulseApp app)
        {
            this.App = app;
            this.currentUser = App.Users.GetCurrent();

            StartTrackTimeCommand = new RelayCommand(StartTrackTimeExecute, StartTrackTimeCanExecute);
            StopTrackTimeCommand = new RelayCommand(StopTrackTimeExecute, StopTrackTimeCanExecute);

            LoadData();

            dispatcherTimer = new System.Windows.Threading.DispatcherTimer();
            dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
            dispatcherTimer.Interval = new TimeSpan(0, 0, 1);
        }
コード例 #2
0
 public LoginModel()
 {
     LogonCommand = new RelayCommand(LogonExecute, LogonCanExecute);
 }