Example #1
0
        private bool PrepareResult()
        {
            var i = ListBoxPresets.SelectedIndex;

            if (ThePresets != null && i >= 0 && i < ThePresets.Count)
            {
                this.ResultQualifier = ThePresets[i].qualifier;
                return(true);
            }

            // uups
            return(false);
        }
Example #2
0
 private void ButtonClose_Click(object sender, RoutedEventArgs e)
 {
     this.ResultQualifier = null;
     ControlClosed?.Invoke();
 }