Exemplo n.º 1
0
 void Groups_GroupCreatedReply(object sender, GroupCreatedReplyEventArgs e)
 {
     if (e.Success)
     {
         newGrpID = e.GroupID;
         client.Groups.ActivateGroup(newGrpID);
         client.Groups.RequestCurrentGroups();
     }
     else
     {
         BeginInvoke(new MethodInvoker(() =>
         {
             lblCreateStatus.Text = string.Format("Group creation failed: {0}", e.Message);
         }
         ));
     }
 }
Exemplo n.º 2
0
 private void GroupCreateReply(object sender, GroupCreatedReplyEventArgs e)
 {
     Importing.Client.Groups.GroupCreatedReply -= GroupCreateReply;
     ErrorMessage = e.Message;
     if (e.Success)
     {
         NewID = e.GroupID;
         Importing.Client.Groups.UpdateGroup(NewID, GetNewGroup());
     }
     WaitOnCreate.Set();
 }
Exemplo n.º 3
0
 /// <summary>Raises the GroupCreated event</summary>
 /// <param name="e">An GroupCreatedEventArgs object containing the
 /// data returned from the simulator</param>
 protected virtual void OnGroupCreatedReply(GroupCreatedReplyEventArgs e)
 {
     EventHandler<GroupCreatedReplyEventArgs> handler = m_GroupCreated;
     if (handler != null)
         handler(this, e);
 }
Exemplo n.º 4
0
 public virtual void Groups_OnGroupCreated(object sender, GroupCreatedReplyEventArgs e) { OnEvent("On-Group-Created", paramNamesOnGroupCreated, paramTypesOnGroupCreated, e); }