Exemple #1
0
        private void bunifuImageButton6_Click(object sender, EventArgs e)
        {
            this.Hide();
            SelectParticipant SP = new SelectParticipant();

            SP.Show();
        }
Exemple #2
0
        private void bunifuFlatButton2_Click(object sender, EventArgs e)
        {
            try
            {
                if (bunifuCustomDataGrid1.SelectedRows.Count > 0)
                {
                    SqlDataAdapter adapt = new SqlDataAdapter("select quiz_id from quizzes where quiz_title= '" + QuizName + "'", con);
                    DataTable      dt    = new DataTable();
                    adapt.Fill(dt);
                    QUIZID = int.Parse(dt.Rows[0][0].ToString());//Getting the ID of The Quiz


                    SelectParticipant SP = new SelectParticipant();
                    SP.Show();

                    // GameSettings GS = new GameSettings();
                    // GS.ShowDialog();

                    //  GameCode GC = new GameCode();
                    //  GC.ShowDialog();

                    //   LobbyFacilitator lobby = new LobbyFacilitator();
                    //  lobby.ShowDialog();
                }//end if result



                else
                {
                    Dialogue.Show("Nothing Selected", "", "Ok", "Cancel");
                }
            }//try


            catch (Exception ex)
            {
                // Dialogue.Show(" ' " + ex.Message.ToString() + "' ", "", "Ok", "Cancel");
            }
        }