Esempio n. 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;
        }
Esempio n. 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;
        }
Esempio n. 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;
        }
Esempio n. 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;
        }
Esempio n. 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();
        }
Esempio n. 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();
        }
Esempio n. 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();
        }
Esempio n. 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;
 }