public void notifyAliasRemove(string alias, IAliasAnswerer comp) { if (alias != null && alias != string.Empty) { __register.unregisterComponent(comp); } }
private void tryAddingComponent(object o) { if (o is IAliasAnswerer) { IAliasAnswerer asAns = (IAliasAnswerer)o; List <IAliasAnswerer> answerers; if (asAns.getAlias() == null) { return; } if (components.ContainsKey(asAns.getAlias())) { answerers = components[asAns.getAlias()]; answerers.Add(asAns); } else { answerers = new List <IAliasAnswerer>(); answerers.Add(asAns); components.Add(asAns.getAlias(), answerers); } notifyAliasAdd(asAns.getAlias(), asAns); } }
public void notifyAliasRemove(string alias, IAliasAnswerer comp) { try { ((IAliasesContainer)Parent).notifyAliasRemove(alias, comp); } catch (Exception e) { } }
//public void unregisterComponent(IAliased comp) public void unregisterComponent(IAliasAnswerer comp) { try { unregisterComponent(comp.getAlias()); } catch (Exception e) { } }
public void notifyAliasAdd(string alias, IAliasAnswerer comp) { try { //System.Windows.MessageBox.Show("AliasAdd: " + alias); ((IAliasesContainer)Parent).notifyAliasAdd(alias, comp); } catch (Exception e) { } }
//public void unregisterComponent(IAliased comp) public void unregisterComponent(IAliasAnswerer comp) { try { unregisterComponent(comp.getAlias()); } catch (Exception e) { } }
public void notifyAliasRemove(string alias, IAliasAnswerer comp) { try { ((IAliasesContainer)Parent).notifyAliasRemove(alias, comp); } catch (Exception e) { } }
public static void aliasChanged(DependencyObject o, DependencyPropertyChangedEventArgs args) { try { FrameworkElement element = (FrameworkElement)o; IAliasesContainer parent = (IAliasesContainer)element.Parent; IAliasAnswerer thisAnswerer = (IAliasAnswerer)o; parent.notifyAliasRemove((string)args.OldValue, thisAnswerer); parent.notifyAliasAdd((string)args.NewValue, thisAnswerer); } catch (Exception ex) { } }
//public void registerComponent(string alias, IAliased comp) public void registerComponent(string alias, IAliasAnswerer comp) { if (alias != null && alias.Length > 0) { if (components.ContainsKey(comp.getAlias())) { components[comp.getAlias()] = comp; } else { components.Add(alias, comp); } if (socket != null && active) { notifyAliasAdd(alias); } } }
private void tryRemovingComponent(object o) { if (o is IAliasAnswerer) { IAliasAnswerer asAns = (IAliasAnswerer)o; if (asAns.getAlias() == null) { return; } List <IAliasAnswerer> answerers = components[asAns.getAlias()]; if (answerers != null) { answerers.Remove(asAns); } } }
//public void registerComponent(string alias, IAliased comp) public void registerComponent(string alias, IAliasAnswerer comp) { if (alias != null && alias.Length > 0) { if (components.ContainsKey(comp.getAlias())) { components[comp.getAlias()] = comp; } else { components.Add(alias, comp); } if (socket != null && active) { notifyAliasAdd(alias); } } }
public void notifyAliasRemove(string alias, IAliasAnswerer comp) { if (alias != null && alias != string.Empty) __register.unregisterComponent(comp); }
//public void registerComponent(IAliased comp) public void registerComponent(IAliasAnswerer comp) { registerComponent(comp.getAlias(), comp); }
//public void registerComponent(IAliased comp) public void registerComponent(IAliasAnswerer comp) { registerComponent(comp.getAlias(), comp); }
public void notifyAliasAdd(string alias, IAliasAnswerer comp) { try { //System.Windows.MessageBox.Show("AliasAdd: " + alias); ((IAliasesContainer)Parent).notifyAliasAdd(alias, comp); } catch (Exception e) { } }
public void setReference(IAliasAnswerer answerer) { reference = answerer; }
public void setReference(IAliasAnswerer answerer) { reference = answerer; }