Example #1
0
 public Info(ICreaterUi creater)
 {
     maxAcNum     = -1;
     maxWaNum     = -1;
     maxTime      = 65535;
     canBack      = false;
     questionNum  = -1;
     this.creater = creater;
 }
        private void btnSelOK(object sender, RoutedEventArgs e)
        {
            ICreaterUi cui = _nowcreaterUi;

            if (cui == null)
            {
                return;
            }

            MsgBorder.Visibility = Visibility.Collapsed;
            StartTest();
        }
        private void SelList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ICreaterUi cui = SelList.SelectedItem as ICreaterUi;

            if (cui == null)
            {
                return;
            }

            _nowcreaterUi = cui;
            if (!string.IsNullOrEmpty(cui.ShowMwssage))
            {
                ShowMsg(cui.ShowMwssage, true);
            }
            else if (cui.CanSelNum)
            {
                SelNum();
            }
            SelList.SelectedItem = null;
            //cui.Creater;
        }