Esempio n. 1
0
        public Workspace_Performance()
        {
            InitializeComponent();

            view = new ViewModel.PerformanceViewModel();
            view.OnRefresh += Call_OnRefresh;
            this.DataContext = view;

            refreshTimer = new System.Windows.Threading.DispatcherTimer();
            refreshTimer.Tick += new EventHandler(view.generate_schedule);
            refreshTimer.Interval = new TimeSpan(0, 0, (int)view.RefreshInterval);
        }
        public Workspace_Performance()
        {
            InitializeComponent();

            view             = new ViewModel.PerformanceViewModel();
            view.OnRefresh  += Call_OnRefresh;
            this.DataContext = view;

            refreshTimer          = new System.Windows.Threading.DispatcherTimer();
            refreshTimer.Tick    += new EventHandler(view.generate_schedule);
            refreshTimer.Interval = new TimeSpan(0, 0, (int)view.RefreshInterval);
        }