/// <summary> /// Create button click event handler /// </summary> /// <param name="sender">Originating object or other controller sender</param> /// <param name="e">Routed event arguments</param> private void Create_Click(object sender, RoutedEventArgs e) { BAS015 module = DataContext as BAS015; Mouse.OverrideCursor = Cursors.Wait; module.CreateProfiles(); Mouse.OverrideCursor = null; }
/// <summary> /// Delete_4 button click event handler /// </summary> /// <param name="sender">Originating object or other controller sender</param> /// <param name="e">Routed event arguments</param> private void Delete_4(object sender, RoutedEventArgs e) { BAS015 module = DataContext as BAS015; Mouse.OverrideCursor = Cursors.Wait; module.DeleteProfile(4); Mouse.OverrideCursor = null; }
/// <summary> /// SignOut_All button click event handler /// </summary> /// <param name="sender">Originating object or other controller sender</param> /// <param name="e">Routed event arguments</param> private void SignOut_All(object sender, RoutedEventArgs e) { BAS015 module = DataContext as BAS015; Mouse.OverrideCursor = Cursors.Wait; module.SignOutAll(); Mouse.OverrideCursor = null; }
/// <summary> /// Sign_4 button click event handler /// </summary> /// <param name="sender">Originating object or other controller sender</param> /// <param name="e">Routed event arguments</param> private void Sign_4(object sender, RoutedEventArgs e) { BAS015 module = DataContext as BAS015; Mouse.OverrideCursor = Cursors.Wait; module.ToggleSignInOut(4); Mouse.OverrideCursor = null; }
/// <summary> /// Profile2 property selection changed event handler /// </summary> /// <param name="sender">Originating object or other controller sender</param> /// <param name="e">Selection changed event arguments</param> private void Selection_Changed2(object sender, SelectionChangedEventArgs e) { BAS015 module = DataContext as BAS015; ComboBox combo = sender as ComboBox; if (combo != null) { BAS015.ConsoleProfileViewItem newSelection = combo.SelectedItem as BAS015.ConsoleProfileViewItem; if (newSelection != null) { newSelection.SelectedInComboBoxIndex = 2; } if (e.RemovedItems.Count > 0) { BAS015.ConsoleProfileViewItem oldSelection = e.RemovedItems[0] as BAS015.ConsoleProfileViewItem; oldSelection.SelectedInComboBoxIndex = 0; } } module.UpdateAllStates(); }
/// <summary> /// Next Page module start button click event handler /// </summary> /// <param name="sender">Originating object or other controller sender</param> /// <param name="e">Routed event arguments</param> private void ClickNext(object sender, RoutedEventArgs e) { BAS015 module = DataContext as BAS015; module.NextStep(); }
/// <summary> /// Auto mode event handler /// </summary> /// <param name="sender">Originating object or other controller sender</param> /// <param name="e">Routed event arguments</param> private void Auto_Mode(object sender, RoutedEventArgs e) { BAS015 module = DataContext as BAS015; module.Auto(); }
/// <summary> /// Initializes a new instance of the BAS015UI class /// Constructs the BAS015Module class through m parameter /// </summary> /// <param name="m">Initializes BAS015Module member</param> public BAS015UI(BAS015 m) { this.InitializeComponent(); this.DataContext = m; }