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