Beispiel #1
0
 /// <summary>
 /// Add a stage to this container
 /// </summary>
 /// <param name="stageNum"></param>
 /// <param name="type"></param>
 /// <param name="stageType"></param>
 /// <param name="totalTurkers"></param>
 /// <param name="totalCost"></param>
 public void addStage(int stageNum, HITData.ResultType type, StageData sdata, string stageType, int totalTurkers, double totalCost, int job)
 {
     StageData stagedata = sdata;
     StageView newStage = new StageView(stageNum, type, stagedata, stageType, totalTurkers, totalCost, job);
     stages.Children.Insert(stages.Children.IndexOf(cancelBtn), newStage);
     stageList[type] = newStage;
     //stageList.Add(newStage);
 }
Beispiel #2
0
        /// <summary>
        /// Add a stage to this container
        /// </summary>
        /// <param name="stageNum"></param>
        /// <param name="type"></param>
        /// <param name="stageType"></param>
        /// <param name="totalTurkers"></param>
        /// <param name="totalCost"></param>
        public void addStage(int stageNum, HITData.ResultType type, StageData sdata, string stageType, int totalTurkers, double totalCost, int job)
        {
            StageData stagedata = sdata;
            StageView newStage  = new StageView(stageNum, type, stagedata, stageType, totalTurkers, totalCost, job);

            stages.Children.Insert(stages.Children.IndexOf(cancelBtn), newStage);
            stageList[type] = newStage;
            //stageList.Add(newStage);
        }
Beispiel #3
0
 /// <summary>
 /// Registers a View as a listener for this Model
 /// </summary>
 /// <param name="sview">The view for this stage</param>
 public void registerListener(StageView sview)
 {
     listener = sview;
 }