Esempio n. 1
0
        /// <summary>
        /// Event handler for changes to the terminology filter
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Text changed event args</param>
        private void FilterChanged(object sender, TextChangedEventArgs e)
        {
            UI028CTC1 module = DataContext as UI028CTC1;
            TextBox   tb     = sender as TextBox;

            module.ApplyTerminologyFilter(tb.Text);
        }
Esempio n. 2
0
 /// <summary>
 /// Event handler for selection changes in the terminology list
 /// </summary>
 /// <param name="sender">The UI element originating this event</param>
 /// <param name="e">Selection changed event args</param>
 private void TermChanged(object sender, SelectionChangedEventArgs e)
 {
     if (e.AddedItems.Count != 0)
     {
         UI028CTC1 module = this.DataContext as UI028CTC1;
         KeyValuePair <string, UI028CTC1.Term> termPair = (KeyValuePair <string, UI028CTC1.Term>)e.AddedItems[0];
         module.CurrentTerm = termPair.Value;
     }
 }
Esempio n. 3
0
        /// <summary>
        /// Event handler for selection changes in console list
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Selection changed event args</param>
        private void Console_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            UI028CTC1 module = this.DataContext as UI028CTC1;

            if (module.Page5Visibility != Visibility.Visible)
            {
                if (e.AddedItems.Count != 0)
                {
                    module.BindOne(e.AddedItems[0] as UI028.UI028CTC1.ObservedLanguage);
                }
            }
        }
Esempio n. 4
0
        /// <summary>
        /// Event handler for capturing screen snapshots
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void Capture_Click(object sender, RoutedEventArgs e)
        {
            UI028CTC1 module = this.DataContext as UI028CTC1;

            module.CaptureScreens();
        }
Esempio n. 5
0
 /// <summary>
 /// Event handler for clicking on a console on the binding page
 /// </summary>
 /// <param name="sender">The UI element originating this event</param>
 /// <param name="e">Routed event args</param>
 private void Bind_Console_Click(object sender, SelectionChangedEventArgs e)
 {
     UI028CTC1 module = this.DataContext as UI028CTC1;
 }
Esempio n. 6
0
        /// <summary>
        /// Event handler for clicking on a console
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void Console_Click(object sender, SelectionChangedEventArgs e)
        {
            UI028CTC1 module = this.DataContext as UI028CTC1;

            module.UpdateCounts();
        }
Esempio n. 7
0
        /// <summary>
        /// Event handler for clicking on a language
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void Language_Click(object sender, RoutedEventArgs e)
        {
            UI028CTC1 module = this.DataContext as UI028CTC1;

            module.UpdateCounts();
        }
Esempio n. 8
0
        /// <summary>
        /// Backs to the previous page
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Router event args</param>
        private void BackPage(object sender, RoutedEventArgs e)
        {
            UI028CTC1 module = this.DataContext as UI028CTC1;

            module.BackPage();
        }
Esempio n. 9
0
        /// <summary>
        /// Event handler for clicking on Right Trigger
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void RightTrigger_Click(object sender, RoutedEventArgs e)
        {
            UI028CTC1 module = this.DataContext as UI028CTC1;

            module.BroadcastControllerRightTrigger();
        }
Esempio n. 10
0
        /// <summary>
        /// Event handler for clicking on Right Shoulder
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void RightShoulder_Click(object sender, RoutedEventArgs e)
        {
            UI028CTC1 module = this.DataContext as UI028CTC1;

            module.BroadcastControllerButtons(XboxAutomationButtonFlags.RightShoulderButton);
        }
Esempio n. 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UI028CTC1UI" /> class.
 /// </summary>
 /// <param name="module">The module class associated with this UI</param>
 public UI028CTC1UI(UI028CTC1 module)
 {
     this.InitializeComponent();
     this.DataContext = module;
 }
Esempio n. 12
0
        /// <summary>
        /// Event handler for saving snapshots
        /// </summary>
        /// <param name="sender">The UI element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void SaveSnapshots_Click(object sender, RoutedEventArgs e)
        {
            UI028CTC1 module = this.DataContext as UI028CTC1;

            module.SaveSnapshots();
        }