Ejemplo n.º 1
0
        private void OnKickAllInRoom_Button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                var inputWnd = new InputWnd {
                    Owner = this, IsNeedUserId = false
                };
                var result = inputWnd.ShowDialog();
                if (result == false)
                {
                    return;
                }

                var roomNumber = inputWnd.TextBoxRoomId.Text;

                HttpHandlers.SendPostMethod("/support/kickAll", roomNumber, "&roomNumber=" + roomNumber);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 2
0
 private void OnDestroyRoom_Button_Click(object sender, RoutedEventArgs e)
 {
     HttpHandlers.SendPostMethod(@"/support/destroyMonkeyRoom", "", null);
     IsPlaying = false;
 }
Ejemplo n.º 3
0
 private void OnCreateRoom_Button_Click(object sender, RoutedEventArgs e)
 {
     HttpHandlers.SendPostMethod(@"/support/createMonkeyRoom", "monkey", null);
 }