Exemple #1
0
        public static TivoTree FromDictionary(IDictionary <string, string> dictionary)
        {
            TivoTree tree = new TivoTree();

            foreach (var entry in dictionary)
            {
                tree.Add(entry.Key, entry.Value);
            }
            return(tree);
        }
Exemple #2
0
        public static TivoTree FromNameValueCollection(System.Collections.Specialized.NameValueCollection collection)
        {
            TivoTree tree  = new TivoTree();
            int      count = collection.Count;

            for (int i = 0; i < count; ++i)
            {
                tree.AddRange(collection.GetKey(i), collection.GetValues(i));
            }
            return(tree);
        }
Exemple #3
0
        public void Add(string key, TivoTree value)
        {
            List <object> values;

            if (_internalDictionary.TryGetValue(key, out values))
            {
                values.Add(value);
            }
            else
            {
                values = new List <object>();
                values.Add(value);
                _internalDictionary.Add(key, values);
            }
        }
 public ApplicationParametersReceivedArgs(TivoTree parameters, byte[] data)
 {
     Parameters = parameters;
     SavedData  = data;
 }
Exemple #5
0
 public bool Remove(TivoTree item)
 {
     return(_values.Remove(item));
 }
Exemple #6
0
 public bool Contains(TivoTree item)
 {
     return(_values.Contains(item));
 }
Exemple #7
0
 public void Add(TivoTree item)
 {
     _values.Add(item);
 }
Exemple #8
0
 public void Insert(int index, TivoTree item)
 {
     _values.Insert(index, item);
 }
Exemple #9
0
 public int IndexOf(TivoTree item)
 {
     return(_values.IndexOf(item));
 }
Exemple #10
0
 public bool TryGetTivoTreeValue(string key, int index, out TivoTree value)
 {
     return(TryGetValue <TivoTree>(key, index, out value));
 }
Exemple #11
0
 public void TransitionStartNew(Uri destination, TivoTree parameters)
 {
     TransitionStartNew(destination.OriginalString, parameters);
 }
Exemple #12
0
 public void TransitionStartNew(string destination, TivoTree parameters)
 {
     PostCommand(new ReceiverTransition(destination, Transition.Teleport, parameters, null));
 }
Exemple #13
0
 public void TransitionBack(TivoTree parameters)
 {
     PostCommand(new ReceiverTransition(null, Transition.Back, parameters, null));
 }
Exemple #14
0
 public void TransitionForward(Uri destination, TivoTree parameters, byte[] savedData)
 {
     TransitionForward(destination.OriginalString, parameters, savedData);
 }
Exemple #15
0
 public void TransitionForward(string destination, TivoTree parameters, byte[] savedData)
 {
     PostCommand(new ReceiverTransition(destination, Transition.Forward, parameters, savedData));
 }