예제 #1
0
 virtual public bool process(string trigger_type, string para)
 {
     if (_curStep != null)
     {
         if (_curStep.process(trigger_type, para) == false)
         {
             _curStep.end();
             _curStep = nextStep();
             if (_curStep == null)
             {
                 end();
                 return(false);
             }
             else
             {
                 _curStep.begin();
                 return(true);
             }
         }
         else
         {
             return(true);
         }
     }
     _curStep = null;
     return(false);
 }
예제 #2
0
 virtual public void end()
 {
     if (_curStep != null)
     {
         _curStep.end();
         _curStep = null;
     }
     _isActive = false;
 }
예제 #3
0
 virtual public bool begin(string para)
 {
     //UIWindowManager.getInstance().hideOtherWindow();
     _curStep = nextStep();
     if (_curStep != null)
     {
         _curStep.begin();
     }
     _isActive = true;
     return(true);
 }
예제 #4
0
 void readGuideStep(System.Security.SecurityElement se, GuideGroup guideGroup)
 {
     foreach (System.Security.SecurityElement child in se.Children)
     {
         Hashtable         hash  = child.Attributes;
         DictionaryEntry[] array = new DictionaryEntry[hash.Count];
         hash.CopyTo(array, 0);
         GuideStep guideStep = new GuideStep();
         for (int i = 0; i < array.Length; i++)
         {
             DictionaryEntry attr     = array[i];
             string          strKey   = (string)attr.Key;
             string          strValue = (string)attr.Value;
             if (strKey == ("id"))
             {
                 guideStep._id = uint.Parse(strValue);
             }
             else if (strKey == "step_name")
             {
                 guideStep._guideShowName = strValue;
             }
             else if (strKey == "step_para")
             {
                 guideStep._step_para = strValue;
             }
             else if (strKey == "end_trigger_type")
             {
                 guideStep._end_trigger_type = strValue;
             }
             else if (strKey == "end_trigger_para")
             {
                 guideStep._end_trigger_para = strValue;
             }
             else if (strKey == "begin_reset")
             {
                 guideStep._begin_reset = int.Parse(strValue);
             }
             else if (strKey == "end_reset")
             {
                 guideStep._end_reset = int.Parse(strValue);
             }
             else if (strKey == "guide_arrow_pos")
             {
                 guideStep._guideArrowPos = strValue;
             }
         }
         guideGroup._guideSteps.Add(guideStep._id, guideStep);
     }
 }
예제 #5
0
 public bool endCurStep()
 {
     if (_curStep != null)
     {
         //if (_curStep.update() == false)
         {
             _curStep.end();
             _curStep = nextStep();
             if (_curStep == null)
             {
                 end();
             }
             else
             {
                 _curStep.begin();
             }
         }
     }
     return(_isActive);
 }
예제 #6
0
 virtual public bool update()
 {
     if (_curStep != null)
     {
         if (_curStep.update() == false)
         {
             if (_curStep != null)//clime
             {
                 _curStep.end();
             }
             _curStep = nextStep();
             if (_curStep == null)
             {
                 end();
             }
             else
             {
                 _curStep.begin();
             }
         }
     }
     return(_isActive);
 }