Esempio n. 1
0
        /// <summary>
        /// Refresh the UI
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Router event args</param>
        private void Refresh(object sender, RoutedEventArgs e)
        {
            STR051CTC1 module = this.DataContext as STR051CTC1;

            module.RefreshStates();
        }
Esempio n. 2
0
        /// <summary>
        /// Disable HDD
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Router event args</param>
        private void DisableHDD(object sender, RoutedEventArgs e)
        {
            STR051CTC1 module = this.DataContext as STR051CTC1;

            module.IsHDDEnabled = false;
        }
Esempio n. 3
0
        /// <summary>
        /// Enable internal MU
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Router event args</param>
        private void EnableInternalMU_Click(object sender, RoutedEventArgs e)
        {
            STR051CTC1 module = this.DataContext as STR051CTC1;

            module.IsMUINTEnabled = true;
        }
Esempio n. 4
0
        /// <summary>
        /// Advance 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)
        {
            STR051CTC1 module = this.DataContext as STR051CTC1;

            module.NextPage();
        }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="STR051CTC1UI" /> class.
 /// </summary>
 /// <param name="module">The module class associated with this UI</param>
 public STR051CTC1UI(STR051CTC1 module)
 {
     this.InitializeComponent();
     this.DataContext = module;
 }
Esempio n. 6
0
        /// <summary>
        /// Capture screen snapshot
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Router event args</param>
        private void Screen_Capture_Click(object sender, RoutedEventArgs e)
        {
            STR051CTC1 module = this.DataContext as STR051CTC1;

            module.ScreenCapture();
        }