private void Endpoint_IncommingAvSession(object sender, AvInvite e) { var invite = FindWindow <Invite>(); if (invite == null) { invite = new Invite(Endpoint); invite.CurrentAvInvite = e; invite.Show(); } else { if (invite.CurrentAvInvite.State != AvInviteState.Pending) { invite.CurrentAvInvite = e; } } }
public void SendInvite(string userName, string levelName, string message) { var inviteForm = new Invite(userName, levelName, message); inviteForm.Show(); }