Ejemplo n.º 1
0
        public MCP4921()
        {
            this.InitializeComponent();

            ViewModel        = new MCP4921ViewModel(this);
            this.DataContext = ViewModel;

            this.Loaded += MainPage_Loaded;
        }
Ejemplo n.º 2
0
        public MCP4921()
        {
            InitializeComponent();

            ViewModel   = new MCP4921ViewModel();
            DataContext = ViewModel;

            dispatcherTimer          = new System.Windows.Threading.DispatcherTimer();
            dispatcherTimer.Tick    += new EventHandler(dispatcherTimer_Tick);
            dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, TIMESPAN_IN_MILLISECONDS);
        }