Beispiel #1
0
        /// <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;
        }
Beispiel #2
0
        /// <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;
        }
Beispiel #3
0
        /// <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;
        }
Beispiel #4
0
        /// <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;
        }
Beispiel #5
0
        /// <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();
        }
Beispiel #6
0
        /// <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();
        }
Beispiel #7
0
        /// <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();
        }
Beispiel #8
0
 /// <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;
 }