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); } }
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); } }
private void OnDestroyRoom_Button_Click(object sender, RoutedEventArgs e) { HttpHandlers.SendPostMethod(@"/support/destroyMonkeyRoom", "", null); IsPlaying = false; }
private void OnCreateRoom_Button_Click(object sender, RoutedEventArgs e) { HttpHandlers.SendPostMethod(@"/support/createMonkeyRoom", "monkey", null); }
private void OnDestroyTable_Button_Click(object sender, RoutedEventArgs e) { HttpHandlers.SendPostMethod(@"/monkey/destroy-monkey-table", "", "&tableID=monkey-table"); IsPlaying = false; }
private void OnCreateTable_Button_Click(object sender, RoutedEventArgs e) { HttpHandlers.SendPostMethod(@"/monkey/create-monkey-table", "", "&tableID=monkey-table"); }