Пример #1
0
        /// <summary>
        /// Event handler for waking up development kits
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void WakeUp_Click(object sender, RoutedEventArgs e)
        {
            GP070CTC1 module = this.DataContext as GP070CTC1;

            module.WakeUpXboxDevkits();
        }
Пример #2
0
        /// <summary>
        /// Event handler for capturing more screen snapshots
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void CaptureMore_Click(object sender, RoutedEventArgs e)
        {
            GP070CTC1 module = this.DataContext as GP070CTC1;

            module.CaptureMoreScreens();
        }
Пример #3
0
        /// <summary>
        /// Event handler for clicking on a console
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void Console_Click(object sender, SelectionChangedEventArgs e)
        {
            GP070CTC1 module = this.DataContext as GP070CTC1;

            module.UpdateCounts();
        }
Пример #4
0
        /// <summary>
        /// Event handler for clicking on a language
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void Language_Click(object sender, RoutedEventArgs e)
        {
            GP070CTC1 module = this.DataContext as GP070CTC1;

            module.UpdateCounts();
        }
Пример #5
0
        /// <summary>
        /// Advances to the next page
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Router event args</param>
        private void NextPage(object sender, RoutedEventArgs e)
        {
            GP070CTC1 module = this.DataContext as GP070CTC1;

            module.NextPage();
        }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GP070CTC1UI" /> class.
 /// </summary>
 /// <param name="module">The module class associated with this UI</param>
 public GP070CTC1UI(GP070CTC1 module)
 {
     this.InitializeComponent();
     this.DataContext = module;
 }
Пример #7
0
        /// <summary>
        /// Event handler for saving and logging snapshots
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void SaveAndLogSnapshots_Click(object sender, RoutedEventArgs e)
        {
            GP070CTC1 module = this.DataContext as GP070CTC1;

            module.SaveAndLogSnapshots();
        }