Exemple #1
0
        //public StoryPoint (string myName)
        //{
        //  ID = myName;
        //  storyLineName = "...";

        //  //if (ID.Equals ("end")) {

        //  //  task = new string[] { "end" };
        //  //  taskType = TASKTYPE.END;

        //  //} else {

        //      task = new string[] { "none" };
        //      taskType = TASKTYPE.BASIC;
        //  //}

        //}

        public StoryPoint(string myName, string myStoryLine, string[] myTask)
        {
            ID        = myName;
            StoryLine = myStoryLine;

            Instructions = myTask;

            switch (Instructions[0])
            {
            case "start":
            case "stop":
            case "tell":
            case "goto":
            //      case "end":
            case "hold":

                taskType = TASKTYPE.ROUTING;
                break;

            //case "end":

            //  taskType = TASKTYPE.END;
            //  break;
            default:

                taskType = TASKTYPE.BASIC;
                break;
            }
        }
 public void Clear()
 {
     this.totalStatus                = string.Empty;
     this.totalDownloadSize          = 0L;
     this.totalDownloadProcessedSize = 0L;
     this.totalInstallSize           = 0L;
     this.totalInstallProcessedSize  = 0L;
     this.totalSize             = 0L;
     this.totalProcessedSize    = 0L;
     this.totalProcessedPercent = 0.0;
     this.taskStatus            = string.Empty;
     this.taskSize                  = 0L;
     this.taskProcessedSize         = 0L;
     this.taskProcessedPercent      = 0.0;
     this.taskReconnectCount        = 0;
     this.taskReconnectCountMax     = 0;
     this.taskType                  = TASKTYPE.NONE;
     this.totalTaskCount            = 0;
     this.totalTaskProcessedCount   = 0;
     this.totalPackCount            = 0;
     this.totalProcessedPackCount   = 0;
     this.packDownloadSize          = 0L;
     this.packDownloadProcessedSize = 0L;
     this.packInstallSize           = 0L;
     this.packInstallProcessedSize  = 0L;
     this.fullPackCount             = 0;
 }