private void MGridView_ItemClick(object sender, AdapterView.ItemClickEventArgs e)
        {
            try
            {
                if (LightModule == null)
                {
                    Toast.MakeText(this, "灯光模拟正在加载中,请耐心等待", ToastLength.Long);
                    return;
                }

                if (tempMessage != null && !CheckAuth(tempMessage.CarSignal.Gps))
                {
                    return;
                }
                //加上授权 //

                InitBrokenRules();
                lstBorkenRuleInfo.Clear();
                var Position = e.Position;

                if (Position >= LightGroup.Length)
                {
                    ExamScore.Reset();

                    StartLightAsync(string.Empty);
                }
                else
                {
                    string GroupName = LightGroup[Position].GroupName;
                    ExamScore.Reset();
                    StartLightAsync(GroupName);
                }
            }
            catch (Exception ex)
            {
                Logger.Error(ex.Message);
            }
            //获取点击的
        }
Example #2
0
 public MaintainExamModel() : base()
 {
     Score         = new ExamScore();
     ListExamScore = new List <ExamScore>();
 }
Example #3
0
 protected void BreakRule(string ruleCode, string subRuleCode = null, int DeductedScores = 0, string DeductedVoiceFile = "")
 {
     ExamScore.BreakRule(ItemCode, Name, ruleCode, subRuleCode, null, DeductedScores, DeductedVoiceFile);
 }