Ejemplo n.º 1
0
        private void PerformAction(string strPanelName)
        {
            //first get the correct CPanelAttributes object
            CPanelAttributes obj = FindPanelObjectInList(strPanelName);

            obj.PerformMyAction();

            /*
             * //call its action
             * if (obj != null)
             * {
             *  //get the system time.
             *  if (dtOfAction == null)
             *  {
             *      dtOfAction = new DateTime();
             *      dtOfAction = DateTime.Now;
             *      obj.PerformMyAction();
             *  }
             *  else
             *  {
             *      DateTime dtTmp = DateTime.Now;
             *      if(10 == dtTmp.Subtract(dtOfAction).Seconds)
             *      {
             *          //ten secs elapsed since last action was in effect. allow
             *          //newer actions now.
             *          obj.PerformMyAction();
             *          dtOfAction = DateTime.Now;
             *      }
             *
             *  }
             * }
             * */
        }