/// <summary> /// Click event handler for Begin button /// </summary> /// <param name="sender">Originating UI element for this event</param> /// <param name="e">Routed event arguments</param> private void Begin_Click(object sender, RoutedEventArgs e) { STR050CTC2 module = DataContext as STR050CTC2; module.BeginLowStorage(); }
/// <summary> /// Click event handler for Enable Internal MU button /// </summary> /// <param name="sender">Originating UI element for this event</param> /// <param name="e">Routed event arguments</param> private void EnableInternalMU_Click(object sender, RoutedEventArgs e) { STR050CTC2 module = DataContext as STR050CTC2; module.IsMUINTEnabled = true; }
/// <summary> /// Click event handler for Disable Hard Disk Drive button /// </summary> /// <param name="sender">Originating UI element for this event</param> /// <param name="e">Routed event arguments</param> private void DisableHDD(object sender, RoutedEventArgs e) { STR050CTC2 module = DataContext as STR050CTC2; module.IsHDDEnabled = false; }
/// <summary> /// StartTest button first click event handler /// </summary> /// <param name="sender">Sender of the object.</param> /// <param name="e">Any required associated arguments.</param> private void NextPage(object sender, RoutedEventArgs e) { STR050CTC2 module = DataContext as STR050CTC2; module.NextPage(); }
/// <summary> /// Initializes a new instance of the STR050UI class /// Constructor for STR050CTC2 to set this instance /// </summary> /// <param name="module">Instance of STR050CTC2 for which to set to this instance.</param> public STR050UI(STR050CTC2 module) { this.InitializeComponent(); this.DataContext = module; }
/// <summary> /// Click event handler for Refresh button /// </summary> /// <param name="sender">Originating UI element for this event</param> /// <param name="e">Routed event arguments</param> private void Refresh(object sender, RoutedEventArgs e) { STR050CTC2 module = DataContext as STR050CTC2; module.RefreshStates(); }
/// <summary> /// Click event handler for External USB Only button /// </summary> /// <param name="sender">Originating UI element for this event</param> /// <param name="e">Routed event arguments</param> private void External_MU_Only_Click(object sender, RoutedEventArgs e) { STR050CTC2 module = DataContext as STR050CTC2; module.SetupExternalMUOnly(); }
/// <summary> /// Click event handler for Next Low Storage button /// </summary> /// <param name="sender">Originating UI element for this event</param> /// <param name="e">Routed event arguments</param> private void Next_Low_Storage_Click(object sender, RoutedEventArgs e) { STR050CTC2 module = DataContext as STR050CTC2; module.NextLowStorage(); }