Beispiel #1
0
 public void Remove(string key, Ajax.Method method)
 {
     int itemNo = -1;
     for (int i = 0; i < _list.Count; i++)
     {
         object[] item = _list[i];
         if ((string)item[0] == key && (Ajax.Method)item[1] == method)
         {
             itemNo = i;
             break;
         }
     }
     if (itemNo > -1)
     {
         _list.RemoveAt(itemNo);
     }
 }
Beispiel #2
0
 public void Add(string key, Ajax.Method method)
 {
     Boolean isExists = false;
     for (int i = 0; i < _list.Count; i++)
     {
         object[] item = _list[i];
         if ((string)item[0] == key && (Ajax.Method)item[1] == method)
         {
             isExists = true;
             break;
         }
     }
     if (!isExists)
     {
         _list.Add(new object[] { key, method });
     }
 }