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); }
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); }
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; }
public bool Remove(TivoTree item) { return(_values.Remove(item)); }
public bool Contains(TivoTree item) { return(_values.Contains(item)); }
public void Add(TivoTree item) { _values.Add(item); }
public void Insert(int index, TivoTree item) { _values.Insert(index, item); }
public int IndexOf(TivoTree item) { return(_values.IndexOf(item)); }
public bool TryGetTivoTreeValue(string key, int index, out TivoTree value) { return(TryGetValue <TivoTree>(key, index, out value)); }
public void TransitionStartNew(Uri destination, TivoTree parameters) { TransitionStartNew(destination.OriginalString, parameters); }
public void TransitionStartNew(string destination, TivoTree parameters) { PostCommand(new ReceiverTransition(destination, Transition.Teleport, parameters, null)); }
public void TransitionBack(TivoTree parameters) { PostCommand(new ReceiverTransition(null, Transition.Back, parameters, null)); }
public void TransitionForward(Uri destination, TivoTree parameters, byte[] savedData) { TransitionForward(destination.OriginalString, parameters, savedData); }
public void TransitionForward(string destination, TivoTree parameters, byte[] savedData) { PostCommand(new ReceiverTransition(destination, Transition.Forward, parameters, savedData)); }