public void OnServiceAdded (object o, ServiceArgs args) { Gtk.Application.Invoke( delegate { Logger.Debug("Adding the service {0}", args.ServiceInfo.ID); TargetService target = new TargetService(args.ServiceInfo); target.ShowAll(); targetVBox.PackStart (target, false, false, 0); targets.Add(args.ServiceInfo.ID, target); } ); }
public void OnServiceRemoved (object o, ServiceArgs args) { Logger.Debug("TargetWindow:OnServiceRemoved called for {0}", args.ServiceInfo.Name); Gtk.Application.Invoke( delegate { Logger.Debug("Remove the service {0}", args.ServiceInfo.Name); if(targets.ContainsKey(args.ServiceInfo.ID)) { targetVBox.Remove(targets[args.ServiceInfo.ID]); targets.Remove(args.ServiceInfo.ID); } } ); }
private void OnServicesChanged (object o, ServiceArgs args) { Gtk.Application.Invoke( delegate { UpdateTrayIcon(); } ); }