/// <summary> /// /// </summary> public void CreateMeeting() { //this.Join.IsEnabled = false; //this.Create.IsEnabled = false; string token; string user = "******"; string email = "*****@*****.**"; SessionManager sessionManager = new SessionManager(); sessionManager.CreateSessionCompleted += new CreateSessionCompletedHandler(this.SessionManager_CreateSessionCompleted); sessionManager.CreateSessionAsync(HawaiiClient.HawaiiApplicationId, this.GetMeetingToken(out token), TextEntry.Text, user, email, new string[] { "*" }, TimeSpan.FromMinutes(60), new Guid(ManagementID), token); TextEntry.Text = token; // MessageBox.Show("created: "+token); DataUse.Instance.RoomName = token; }
/// <summary> /// /// </summary> private void JoinMeeting() { DataUse.Instance.RoomCreated = false; if (this.session != null) { this.session.Shutdown(); this.session = null; } //this.Join.IsEnabled = false; //this.Create.IsEnabled = false; string token; string user = "******"; string email = "*****@*****.**"; token = TextEntry.Text; if (token.Length != 6) { this.Dispatcher.BeginInvoke(() => { MessageBox.Show("Please type a 6 character alphanumeric session code first."); //this.Join.IsEnabled = true; //this.Create.IsEnabled = true; }); } else { this.chat = new SmashTable<Channels.ChatRecord>("Chat"); Dispatcher.BeginInvoke(() => { ChatText.DataContext = this.chat; }); SessionManager sessionManager = new SessionManager(); sessionManager.JoinSessionCompleted += new JoinSessionCompletedHandler(this.SessionManager_JoinSessionCompleted); sessionManager.JoinSessionAsync(HawaiiClient.HawaiiApplicationId, this.Dispatcher, this.GetMeetingToken(token), user, email, GetUniqueClientID(), new ISmashTable[] { this.chat }, null); // MessageBox.Show("I've Joined room " + token); AddOrUpdateSettings("eventid", token); } }