public string CheckConflict()

in DiagManager/DiagClasses/Scenario.cs [153:180]


        public string CheckConflict()
        {
            string msg = string.Empty;
            Scenario evtGeneralPerf = this.FindByNameIgnoreCase<Scenario>("GeneralPerf");
            Scenario evtDetailedPerf = this.FindByNameIgnoreCase<Scenario>("DetailedPerf");
            Scenario evtLightPerf = this.FindByNameIgnoreCase<Scenario>("LightPerf");
            Scenario evtReplay = this.FindByNameIgnoreCase<Scenario>("Replay");

            int checkedCount = 0;
            if (evtGeneralPerf.IsChecked)
                checkedCount++;
            if (evtDetailedPerf.IsChecked)
                checkedCount++;
            if (evtLightPerf.IsChecked)
                checkedCount++;

            if (evtReplay.IsChecked)
                checkedCount++;


            if (checkedCount > 1)
            {
                msg += "Performance templates are selected more than once.  You should only select one of General Performance, Light Performance, Detailed Performance or Replay";
            }


            return msg;
        }