Пример #1
0
        public BazelyChuck(int pnum, String[] data)
            : base(PatternType.bazley, 0, 1)
        {
            PatternIndex = pnum;
            try
            {
                SR = double.Parse(data[5]);
            }
            catch
            {
                SR = 0;
            }
            Stages = new ObservableCollection <BazelyStageData>();
            // now one or more stages
            ArraySegment <string> stage1 = new ArraySegment <string>(data, 0, 5);
            ArraySegment <string> stage2 = new ArraySegment <string>(data, 6, 5);
            BazelyStageData       sdata  = new BazelyStageData(stage1);

            this.Add(sdata);
            string s2 = stage2.ElementAt(0);

            if (double.Parse(s2) != 0)
            {
                this.Add(new BazelyStageData(stage2));
            }
            var resourceLoader = new ResourceLoader();

            Script = resourceLoader.GetString("RUN");
        }
Пример #2
0
 public void Add(BazelyStageData sdata)
 {
     sdata.PropertyChanged += sdata_PropertyChanged;
     Stages.Add(sdata);
 }