示例#1
0
        /// <summary>
        /// Handler for Selection Changed event in a ListView
        /// </summary>
        /// <param name="sender">UI Element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            STR118CTC1 module = this.DataContext as STR118CTC1;

            module.CanPassFail = false;
            module.CanLoad     = true;
        }
示例#2
0
        /// <summary>
        /// Handler for KeyUp events in a ListView
        /// </summary>
        /// <param name="sender">UI Element originating this event</param>
        /// <param name="e">Key event args</param>
        private void ListView_KeyUp(object sender, KeyEventArgs e)
        {
            STR118CTC1 module = this.DataContext as STR118CTC1;

            if (e.Key == Key.Delete)
            {
                module.DeleteSelectedSaveOnbox();
            }
        }
示例#3
0
        /// <summary>
        /// Fail test of a saved file
        /// </summary>
        /// <param name="sender">UI Element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void FailSave_Click(object sender, RoutedEventArgs e)
        {
            STR118CTC1 module = this.DataContext as STR118CTC1;

            module.FailSave();
        }
示例#4
0
        /// <summary>
        /// Add saves
        /// </summary>
        /// <param name="sender">UI Element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void AddSaves_Click(object sender, RoutedEventArgs e)
        {
            STR118CTC1 module = this.DataContext as STR118CTC1;

            module.AddSaves();
        }
示例#5
0
        /// <summary>
        /// Load optional save type
        /// </summary>
        /// <param name="sender">UI Element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void LoadAdjunct_Click(object sender, RoutedEventArgs e)
        {
            STR118CTC1 module = this.DataContext as STR118CTC1;

            module.LoadSelectedAdjunct();
        }
示例#6
0
        /// <summary>
        /// Advance to the next page
        /// </summary>
        /// <param name="sender">UI Element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void NextPage(object sender, RoutedEventArgs e)
        {
            STR118CTC1 module = this.DataContext as STR118CTC1;

            module.NextPage();
        }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="STR118CTC1UI" /> class.
 /// </summary>
 /// <param name="module">The module class associated with this UI</param>
 public STR118CTC1UI(STR118CTC1 module)
 {
     this.InitializeComponent();
     this.DataContext = module;
 }
示例#8
0
        /// <summary>
        /// Handler for pressing delete in a ListView
        /// </summary>
        /// <param name="sender">UI Element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void ListView_Delete(object sender, RoutedEventArgs e)
        {
            STR118CTC1 module = this.DataContext as STR118CTC1;

            module.DeleteSelectedSaveOnbox();
        }
示例#9
0
        /// <summary>
        /// Pass test using no profile
        /// </summary>
        /// <param name="sender">UI Element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void PassNoProfile_Click(object sender, RoutedEventArgs e)
        {
            STR118CTC1 module = this.DataContext as STR118CTC1;

            module.PassNoProfile();
        }
示例#10
0
        /// <summary>
        /// Investigate Failed test of a saved file - click after
        /// </summary>
        /// <param name="sender">UI Element originating this event</param>
        /// <param name="e">Routed event args</param>
        private void Investigate_Click(object sender, RoutedEventArgs e)
        {
            STR118CTC1 module = this.DataContext as STR118CTC1;

            module.InvestigationIsDone();
        }