// Constructor public MainPage() { InitializeComponent(); newTimer = new DispatcherTimer(); newTimer.Interval = TimeSpan.FromTicks(1); newTimer.Tick += OnTimerTick; newTimer.Start(); mat = MobileAppTracker.InitializeValues("877", "8c14d6bbe466b65211e781d62e301eec"); mat.SetPackageName("com.hasofferstestapp"); mat.SetAllowDuplicates(true); mat.SetDebugMode(true); MyMATResponse response = new MyMATResponse(); mat.SetMATResponse(response); }
public MainPage() { newTimer = new DispatcherTimer(); newTimer.Interval = TimeSpan.FromTicks(1); newTimer.Tick += delegate { clock.Content = counter--; }; newTimer.Start(); this.InitializeComponent(); // Init MobileAppTracker mat = MobileAppTracker.InitializeValues("877", "8c14d6bbe466b65211e781d62e301eec"); mat.SetAllowDuplicates(true); mat.SetDebugMode(true); MyMATResponse response = new MyMATResponse(); mat.SetMATResponse(response); }