예제 #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);
            }
        }
예제 #2
0
        private void OnExportTableCfg_Button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                var inputWnd = new InputWnd {
                    Owner = this, IsNeedUserId = false
                };
                var result = inputWnd.ShowDialog();
                if (result == false)
                {
                    return;
                }

                var tableNumber = inputWnd.TextBoxTableId.Text;

                HttpHandlers.SendPostMethod("/resetTable", tableNumber, "&tableNumber=" + tableNumber);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #3
0
 private void OnDestroyRoom_Button_Click(object sender, RoutedEventArgs e)
 {
     HttpHandlers.SendPostMethod(@"/support/destroyMonkeyRoom", "", null);
     IsPlaying = false;
 }
예제 #4
0
 private void OnCreateRoom_Button_Click(object sender, RoutedEventArgs e)
 {
     HttpHandlers.SendPostMethod(@"/support/createMonkeyRoom", "monkey", null);
 }
예제 #5
0
 private void OnDestroyTable_Button_Click(object sender, RoutedEventArgs e)
 {
     HttpHandlers.SendPostMethod(@"/monkey/destroy-monkey-table", "", "&tableID=monkey-table");
     IsPlaying = false;
 }
예제 #6
0
 private void OnCreateTable_Button_Click(object sender, RoutedEventArgs e)
 {
     HttpHandlers.SendPostMethod(@"/monkey/create-monkey-table", "", "&tableID=monkey-table");
 }