/// <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(); }
/// <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; }
/// <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; }
/// <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(); }
/// <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; }
/// <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(); }