private void GroupNames(object sender, GroupNamesEventArgs e) { if (!IsExporting) return; foreach (KeyValuePair<UUID, string> name in e.GroupNames) { lock (fileWriterLock) File.WriteAllText(siminfoDir + "" + name.Key + ".group", name.Value); } }
void Groups_GroupNamesReply(object sender, GroupNamesEventArgs e) { if (!e.GroupNames.ContainsKey(parcelGroupID)) return; if (InvokeRequired) { if (IsHandleCreated || !instance.MonoRuntime) { BeginInvoke(new MethodInvoker(() => Groups_GroupNamesReply(sender, e))); } return; } lblGroup.Text = e.GroupNames[parcelGroupID]; }
/// <summary>Raises the GroupNamesReply event</summary> /// <param name="e">A GroupNamesEventArgs object containing the /// data response from the simulator</param> protected virtual void OnGroupNamesReply(GroupNamesEventArgs e) { EventHandler<GroupNamesEventArgs> handler = m_GroupNames; if (handler != null) handler(this, e); }
private void Groups_GroupNamesReply(object sender, GroupNamesEventArgs e) { lock(groupCacheLock) { foreach(var i in e.GroupNames) { var name = "#" + MakeIrcName(i.Value); GroupIdByIrcName[name] = i.Key; GroupIrcNameByUuid[i.Key] = name; } lock (groupRequests) { foreach(var i in groupRequests) { string name; if(GroupIrcNameByUuid.TryGetValue(i.Key, out name)) { i.Value.SetResult(name); groupRequests.Remove(i.Key); } } } } }
public void Groups_GroupNamesReply(object sender, GroupNamesEventArgs e) { AjaxLife.Debug("OnGroupNames", "OnGroupNames arrived."); Hashtable message = new Hashtable(); message.Add("MessageType", "GroupNames"); message.Add("Names", e.GroupNames); enqueue(message); }
void Groups_GroupNamesReply(object sender, GroupNamesEventArgs e) { if(e.GroupNames.ContainsKey(group_target)) try_update_group_lable(group_target); }
public virtual void Groups_OnGroupNames(object sender, GroupNamesEventArgs e) { OnEvent("On-Group-Names", paramNamesOnGroupNames, paramTypesOnGroupNames, e); }
void Groups_GroupNamesReply(object sender, GroupNamesEventArgs e) { Gtk.TreeModel mod; Gtk.TreeIter iter; if(treeview1.Selection.GetSelected(out mod,out iter)) { UUID id=(UUID)mod.GetValue(iter,3); Primitive prim; if(FetchedPrims.TryGetValue(id,out prim)) { string group;; if(MainClass.client.Groups.GroupName2KeyCache.TryGetValue(prim.Properties.GroupID,out group)) { Gtk.Application.Invoke(delegate { this.label_group.Text=group; }); } } } }