private void cmbxPositionRC_SelectionChangeCommitted(object sender, EventArgs e) { if (cmbxPositionRC.SelectedIndex > 0) { //DSL obj = new DSL(); DSL_offline obj = new DSL_offline(); string[] qList = obj.get_quiz_List(Convert.ToInt32(cmbxPositionRC.SelectedValue)).Split('#'); int i = 1;//quiz_id_starting no foreach (Control control in pnl_QuizList.Controls) { CheckBox quizNo = (CheckBox)pnl_QuizList.Controls.Find(i.ToString(), true).FirstOrDefault(); quizNo.Checked = false; i++; } foreach (string quiz in qList) { CheckBox quizNo = (CheckBox)pnl_QuizList.Controls[quiz]; quizNo.Checked = true; } //switch (Convert.ToString(cmbxPositionRC.SelectedValue)) //{ // case "1": // selected_candidate_row["Category"] = "Standard"; // break; // case "2": // selected_candidate_row["Category"] = "Subcontractor"; // break; // case "3": // selected_candidate_row["Category"] = "Superitendent"; // break; //} } }
private async void upload_results_Load(object sender, EventArgs e) { panel1.Visible = false; label5.Visible = false; progressBarUpload.Visible = false; try { wait_form = new Loader(); // wait_form.MdiParent = this; //wait_form.StartPosition = FormStartPosition.Manual; //wait_form.Top = (Login_formYPos + Login_formHeight) / 2; //wait_form.Left = (Login_formXPos + Login_formWidth) / 2; wait_form.Show(); Application.DoEvents(); DSL obj = new DSL(); jobList = await obj.getAllJobs(); if (jobList == null) { DSL_offline obj_ = new DSL_offline(); jobList = obj_.get_jobList(); } DataRow row = jobList.NewRow(); row["Name"] = "--Select--"; jobList.Rows.InsertAt(row, 0); cmbxJobList.DataSource = jobList; cmbxJobList.DisplayMember = jobList.Columns["Name"].ToString(); cmbxJobList.ValueMember = jobList.Columns["Name"].ToString(); } catch (Exception ex) { // MessageBox.Show(ex.Message); //throw; if (ex.Message.Contains("A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible")) { MessageBox.Show("This feature requires stable internet connection, Kindly check internet connection and try again!"); this.Close(); wait_form.Close(); } else { MessageBox.Show(ex.Message); } } }
public Login_offline(DataSet databank) { InitializeComponent(); dBank = databank; logger = new LogWriter("Login Form Opened"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("es"); //DSL obj = new DSL(); DSL_offline obj = new DSL_offline(); DataTable category = obj.getCategories(); DataRow cat_row = category.NewRow(); pictureBox2.Visible = false; cat_row["CategoryID"] = -1; cat_row["CategoryName"] = "--Select--"; category.Rows.InsertAt(cat_row, 0); cmxCategory.DataSource = category; cmxCategory.DisplayMember = "CategoryName"; cmxCategory.ValueMember = "CategoryID"; DataTable categoryRC = obj.getCategories(); DataRow categoryRC_row = categoryRC.NewRow(); categoryRC_row["CategoryID"] = -1; categoryRC_row["CategoryName"] = "--Select--"; categoryRC.Rows.InsertAt(categoryRC_row, 0); cmbxPositionRC.DataSource = categoryRC; cmbxPositionRC.DisplayMember = "CategoryName"; cmbxPositionRC.ValueMember = "CategoryID"; worker = new BackgroundWorker(); worker.WorkerReportsProgress = true; worker.DoWork += Worker_DoWork; worker.ProgressChanged += Worker_ProgressChanged; // worker.RunWorkerAsync(); qrcode = new QRCodeWinForm(); //QRCode_Panel.Controls.Add(qrcode); Configuration config = ConfigurationManager.OpenExeConfiguration(Application.ExecutablePath); spJobsite = Convert.ToString(config.AppSettings.Settings["SharePointJobSite"].Value); spCandidateSite = Convert.ToString(config.AppSettings.Settings["SharePointSafetySite"].Value); CandidateList = Convert.ToString(config.AppSettings.Settings["quizListName"].Value); O365UserName = Convert.ToString(config.AppSettings.Settings["O365UserName"].Value); static_folder_structure = Convert.ToString(config.AppSettings.Settings["FolderStructure"].Value); string tempString = config.AppSettings.Settings["O365Password"].Value; O365Password = new SecureString(); candidates = new DataTable(); candidates.Columns.Add("CandidateID", typeof(string)); candidates.Columns.Add("First_name", typeof(string)); candidates.Columns.Add("Last_name", typeof(string)); candidates.Columns.Add("Job", typeof(string)); candidates.Columns.Add("Hire_Status", typeof(string)); candidates.Columns.Add("FolderURL", typeof(string)); candidates.Columns.Add("Remaining_Test", typeof(string)); candidates.Columns.Add("DisplayCombobox", typeof(string)); candidates.Columns.Add("Category", typeof(string)); candidates.Columns.Add("Date", typeof(string)); candidates.Columns.Add("DOB", typeof(string)); foreach (char c in tempString) { O365Password.AppendChar(c); } try { DataTable dt = databank.Tables["JobSiteInfo"]; //cmxJobList.DataSource = dt; foreach (DataRow row in dt.Rows) { cmxJobList.Items.Add(Convert.ToString(row["Name"])); } cmxJobList.Items.Insert(0, "--Select--"); // logger.LogWrite("JobComboBox Populated"); } catch (Exception ex) { logger.LogWrite("JobComboBox Population Failed"); // logger.LogWrite(ex.StackTrace); } //using (Microsoft.SharePoint.Client.ClientContext context = new Microsoft.SharePoint.Client.ClientContext(spCandidateSite)) //{ // context.Credentials = new Microsoft.SharePoint.Client.SharePointOnlineCredentials(O365UserName, O365Password); // context.Load(context.Web, w => w.Title); // context.ExecuteQuery(); // Microsoft.SharePoint.Client.List list = context.Web.Lists.GetByTitle(CandidateList); // context.Load(list); // Microsoft.SharePoint.Client.ListItemCollection listitems = list.GetItems(Microsoft.SharePoint.Client.CamlQuery.CreateAllItemsQuery()); // context.Load(listitems); // context.ExecuteQuery(); // DataRow row_select = candidates.NewRow(); // row_select["DisplayCombobox"] = "--Select--"; // row_select["CandidateID"] = -1; // candidates.Rows.Add(row_select); // foreach (Microsoft.SharePoint.Client.ListItem item in listitems) // { // // cmbxCandidateList.Items.Add(item["CandidateID"] + " - " + item["First_name"]+"_"+item["Last_name"]); // DataRow row = candidates.NewRow(); // row["CandidateID"] = item["CandidateID"]; // row["First_name"] = item["First_name"]; // row["Last_name"] = item["Last_name"]; // row["Job"] = item["Job"]; // row["Hire_Status"] = item["Hire_Status"]; // Microsoft.SharePoint.Client.FieldUrlValue _url = (Microsoft.SharePoint.Client.FieldUrlValue)item["FolderUrl"]; // row["FolderUrl"] = _url.Url; // row["Remaining_Test"] = item["Remaining_Test"]; // row["DisplayCombobox"] = item["CandidateID"] + " - " + item["First_name"] + "_" + item["Last_name"]; // row["Category"] = item["Category"]; // row["Date"] = item["Modified"]; // row["DOB"] = item["DOB"]; // candidates.Rows.Add(row); // } // cmbxCandidateList.DataSource = databank.Tables["CandidateInfo"]; // //cmbxCandidateList.Items.Add(new { Text = "---Select---", Value = -1 }); // cmbxCandidateList.DisplayMember = "DisplayCombobox"; // cmbxCandidateList.ValueMember = "CandidateID"; // cmxJobList.SelectedIndex = 0; //} candidateTempTable = new DataTable(); candidateTempTable = databank.Tables["CandidateInfo"].Clone(); DataRow row_select = candidateTempTable.NewRow(); row_select["DisplayCombobox"] = "--Select--"; row_select["CandidateID"] = -1; candidateTempTable.Rows.Add(row_select); int pos = 0; candidateListItems = new string[databank.Tables["CandidateInfo"].Rows.Count]; foreach (DataRow row in databank.Tables["CandidateInfo"].Rows) { candidateTempTable.ImportRow(row); candidateListItems[pos] = row["First_name"] + "_" + row["Last_name"] + "_" + row["CandidateID"]; pos++; } cmbxCandidateList.DataSource = candidateTempTable; //cmbxCandidateList.Items.Add(new { Text = "---Select---", Value = -1 }); cmbxCandidateList.DisplayMember = "DisplayCombobox"; cmbxCandidateList.ValueMember = "CandidateID"; cmxJobList.SelectedIndex = 0; //cmbxCandidateList.Items.CopyTo(candidateListItems, 0); }
private void cmbxCandidateList_SelectionChangeCommitted(object sender, EventArgs e) { if (cmbxCandidateList.SelectedIndex > 0) { this.llViewHistory.Links.RemoveAt(0); cmbxPositionRC.SelectedIndex = 0; pnl_QuizList.Controls.Clear(); pnl_configureTest.Visible = true; txtBox_remaining_tst.Text = ""; lblTestCountPlcHldr.Text = ""; lblFirstName.Visible = true; lblLastName.Visible = true; lblfName.Visible = true; lbllName.Visible = true; lblDOB.Visible = true; dtmDOB.Visible = true; pictureBox2.Visible = true; dtmDOB.Text = ""; lblSelectJob.Visible = true; cmxJobList.Visible = true; lblTestDetails.Visible = true; panel_test_Status.Visible = true; lblHireStatusPlcHolder.Visible = true; lblHireStatus.Visible = true; DataRowView rowView = (DataRowView)cmbxCandidateList.SelectedItem; selected_candidate_row = rowView.Row; lblfName.Text = Convert.ToString(selected_candidate_row["First_name"]); lbllName.Text = Convert.ToString(selected_candidate_row["Last_name"]); string job = Convert.ToString(selected_candidate_row["Job"]); lblLastDateTime.Text = Convert.ToString(selected_candidate_row["Date"]); lblHireStatusPlcHolder.Text = Convert.ToString(selected_candidate_row["Hire_Status"]); chkBoxUploadJobsite.Visible = true; dtmDOB.Format = DateTimePickerFormat.Short; if (Convert.ToString(selected_candidate_row["DOB"]) == "") { dtmDOB.CustomFormat = " "; dtmDOB.Format = DateTimePickerFormat.Custom; } else { string DateofBirth = Convert.ToString(selected_candidate_row["DOB"]); dtmDOB.Text = DateofBirth; } foreach (var item in cmxJobList.Items) { if (Convert.ToString(selected_candidate_row["Hire_Status"]) == "Conditional Hire") { if ((Convert.ToString(item) == job)) { cmxJobList.SelectedItem = item; break; } else { } } else { cmxJobList.SelectedIndex = 0; break; } } lblLastJob.Text = Convert.ToString(selected_candidate_row["Job"]); llViewHistory.Links.Add(0, llViewHistory.Text.Length, Convert.ToString(selected_candidate_row["FolderURL"])); qrcode.Data = Convert.ToString(selected_candidate_row["FolderURL"]); qrcode.DataMode = OnBarcode.Barcode.QRCodeDataMode.Auto; qrcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg; qrcode.drawBarcode(); Size s = new Size(75, 75); qrcode.Size = s; //QRCode_Panel.Controls.Add(qrcode); lblPositionPlcHlder.Text = Convert.ToString(selected_candidate_row["Category"]); string[] remaining_test = Convert.ToString(selected_candidate_row["Remaining_Test"]).Split(';'); int count_remaining_test = 0; if (remaining_test.Count() > 0) { foreach (string test in remaining_test) { if (test != "") { txtBox_remaining_tst.AppendText(test + "\n"); count_remaining_test++; } } lblTestCountPlcHldr.Text = Convert.ToString(count_remaining_test); } else { txtBox_remaining_tst.AppendText("No Remaining Test"); lblTestCountPlcHldr.Text = "0"; } string previous_pos = lblPositionPlcHlder.Text; if (Convert.ToString(selected_candidate_row["Hire_Status"]) == "Conditional Hire") { cmbxPositionRC.Enabled = false; cmxJobList.Enabled = false; } else { cmbxPositionRC.Enabled = true; cmxJobList.Enabled = true; } //DSL obj = new DSL(); DSL_offline obj = new DSL_offline(); DataTable Quiz = obj.get_all_quizes(); CheckBox box; int i = 1; foreach (DataRow Quizrow in Quiz.Rows) { box = new CheckBox(); // box.BackColor = Color.FromArgb(255, 246, 236); box.Tag = Convert.ToString(Quizrow["QuizDescription"]); box.Name = Convert.ToString(Quizrow["Quiz"]); box.ForeColor = Color.FromArgb(28, 52, 60); box.Font = new System.Drawing.Font(new System.Drawing.FontFamily("Verdana"), (float)8.25, FontStyle.Bold); box.Text = "Quiz" + i; box.AutoSize = true; pnl_QuizList.Controls.Add(box); i++; ToolTip toolTip1 = new ToolTip(); box.CheckedChanged += new EventHandler(CheckBox_CheckedChanged); // Set up the delays for the ToolTip. toolTip1.AutoPopDelay = 5000; toolTip1.InitialDelay = 1000; toolTip1.ReshowDelay = 500; // Force the ToolTip text to be displayed whether or not the form is active. toolTip1.ShowAlways = true; // Set up the ToolTip text for the Button and Checkbox. toolTip1.SetToolTip(box, Convert.ToString(Quizrow["QuizDescription"])); if (Convert.ToString(selected_candidate_row["Hire_Status"]) == "Conditional Hire") { box.Enabled = false; } } if (count_remaining_test > 0) { Panel qListPanel = (Panel)this.Controls.Find("pnl_QuizList", true).FirstOrDefault(); //qListPanel.Controls.Clear(); foreach (Control control in qListPanel.Controls) { foreach (string test in remaining_test) { if (test != "") { string temp = test.Split(':')[0]; if (temp != "") { string checkBoxName = temp.Split(' ')[1]; CheckBox quizNo = (CheckBox)qListPanel.Controls[checkBoxName]; quizNo.Checked = true; } } } } } } else if (cmbxCandidateList.SelectedIndex == 0) { lblReturningCandidate.Visible = true; cmbxCandidateList.Visible = true; lblSelectCandidate.Visible = true; lblTestDetails.Visible = false; panel_test_Status.Visible = false; lblHireStatusPlcHolder.Visible = false; lblHireStatus.Visible = false; pnl_configureTest.Visible = false; lblDOB.Visible = false; dtmDOB.Visible = true; cmxJobList.Enabled = true; lblPositionPlcHlder.Text = ""; lblHireStatusPlcHolder.Text = ""; lblTestCountPlcHldr.Text = ""; lblLastJob.Text = ""; lblLastTestDateTime.Text = ""; pictureBox2.Visible = false; chkBoxUploadJobsite.Visible = false; lblFirstName.Visible = false; txtBxFName.Visible = false; lblLastName.Visible = false; txtBxLastName.Visible = false; lblSupervisor.Visible = false; cmxCategory.Visible = false; lblSelectJob.Visible = false; cmxJobList.Visible = false; lblfName.Visible = false; lbllName.Visible = false; dtmDOB.Visible = false; } }
private void Quiz_Load(object sender, EventArgs e) { tbcontrolQuizzes.TabPages.Clear(); // TODO: This line of code loads data into the 'quizzedDataSet.QuestionBank' table. You can move, or remove it, as needed. // this.questionBankTableAdapter.Fill(this.quizzedDataSet.QuestionBank); //dslObj = new DSL(); dslObj = new DSL_offline(); // qBank = dslObj.getallQuestions(); // int quizCount = dslObj.getQuizCount(); qBank = dslObj.getallQuestionsByCategory(pos_category); //get video links VideoLinks = dslObj.get_QuizLinks(); TabControl tb_Videos = (TabControl)flwPanl_links.Controls["tbControlVidLinks"]; FlowLayoutPanel flwoffline = (FlowLayoutPanel)tb_Videos.TabPages[0].Controls[0]; FlowLayoutPanel flwonline = (FlowLayoutPanel)tb_Videos.TabPages[1].Controls[0]; string VideoPath = AppDomain.CurrentDomain.BaseDirectory + "Videos\\"; int QuizIndex = 1; panel1.AutoScrollPosition = new Point(0, 0); foreach (DataRow video in VideoLinks.Rows) { LinkLabel lbl = new LinkLabel(); LinkLabel lbl2 = new LinkLabel(); lbl2.Text = Convert.ToString(video["Link_text"]) + Environment.NewLine; lbl2.Links.Add(0, lbl2.Text.Length, VideoPath + Convert.ToString("Quiz" + QuizIndex) + ".mp4"); lbl2.LinkClicked += Lbl_LinkClicked; lbl.Text = Convert.ToString(video["Link_text"]) + Environment.NewLine; lbl.LinkClicked += Lbl_LinkClicked; lbl.Links.Add(0, lbl.Text.Length, Convert.ToString(video["Vid_Link"])); //flwPanl_links.Controls.Add(lbl) flwoffline.Controls.Add(lbl2); flwonline.Controls.Add(lbl); QuizIndex++; } // max_fail_quiz = Convert.ToInt32(Math.Floor(.30 * total_quiz)); //max_fail_quiz = Convert.ToInt32((.30 * total_quiz)); foreach (DataRow qrow in qBank.Rows) { if (!testIds.Contains(Convert.ToInt32(qrow["QuizNumber"]))) { testIds.Add(Convert.ToInt32(qrow["QuizNumber"])); } } QuizNo = testIds[0]; int quizCount = testIds.Count(); total_quiz = quizCount; max_fail_quiz = Convert.ToInt32(Math.Floor(.30 * total_quiz)); TabPage[] tabarray = new TabPage[quizCount + 1]; int i = 0; foreach (int test in testIds) { tabarray[i] = new TabPage("Quiz" + Convert.ToString(test)); Panel qpanel = new Panel(); qpanel.BorderStyle = BorderStyle.None; tabarray[i].Name = "Quiz " + test; tabarray[i].ForeColor = Color.FromArgb(28, 52, 60); tabarray[i].BorderStyle = BorderStyle.None; tabarray[i].BackColor = Color.FromArgb(224, 237, 241); qpanel.Name = "pnl_tab_Quiz_Questions" + Convert.ToString(i + 1); qpanel.Location = new System.Drawing.Point(10, 0); //qpanel.BackColor = Color.CadetBlue; qpanel.Width = 1468; qpanel.Height = 150; qpanel.BackColor = Color.FromArgb(224, 237, 241); //qpanel.Anchor = AnchorStyles.Bottom; //qpanel.Anchor = AnchorStyles.Top; qpanel.Controls.Add(new Label() { Name = "pnl_tab_Quiz_Questions_lbl_QHeading" + Convert.ToString(i + 1), Text = "QHeading", Location = new System.Drawing.Point(7, 16), Margin = new Padding(3, 0, 3, 0), Font = new System.Drawing.Font("Verdana", 28, FontStyle.Bold, GraphicsUnit.Pixel), AutoSize = true, ForeColor = Color.FromArgb(28, 52, 60) }); qpanel.Controls.Add(new Label() { Name = "pnl_tab_Quiz_Questions_lbl_QNo" + Convert.ToString(i + 1), Text = "QNo", Location = new System.Drawing.Point(12, 70), Margin = new Padding(3, 0, 3, 0), Font = new System.Drawing.Font("Verdana", 15, FontStyle.Bold, GraphicsUnit.Pixel), AutoSize = true }); qpanel.Controls.Add(new Label() { Name = "pnl_tab_Quiz_Questions_lbl_Q" + Convert.ToString(i + 1), Text = "Questions", Location = new System.Drawing.Point(80, 70), Margin = new Padding(10, 0, 3, 0), Font = new System.Drawing.Font("Verdana", 16, FontStyle.Bold, GraphicsUnit.Pixel), AutoSize = true, MaximumSize = new Size(100, 150) }); qpanel.Controls.Add(new Label() { Name = "pnl_tab_Quiz_Questions_QID" + Convert.ToString(i + 1), Text = "ID", Location = new System.Drawing.Point(750, 70), Margin = new Padding(3, 0, 3, 0), Visible = false, Font = new System.Drawing.Font("Verdana", 10, GraphicsUnit.Pixel), AutoSize = true, MaximumSize = new Size(100, 100) }); tabarray[i].Controls.Add(qpanel); tabarray[i].Controls.Add(new Panel() { Name = "pnl_tab_Quiz_Answers" + Convert.ToString(i + 1), Location = new System.Drawing.Point(10, 150), Width = 1472, Height = 300, BackColor = Color.FromArgb(224, 237, 241) }); Panel navPanel = new Panel(); navPanel.Name = "pnl_tab_Quiz_Navigation" + Convert.ToString(i + 1); navPanel.Location = new System.Drawing.Point(10, 400); //navPanel.BackColor = Color.GreenYellow; navPanel.Width = 1472; navPanel.Height = 300; navPanel.Margin = new Padding(50); navPanel.BackColor = Color.FromArgb(224, 237, 241); Button prev_button = new Button(); prev_button.Name = "btn_pnl_" + Convert.ToString(i + 1) + "_prev"; prev_button.Text = "Previous Question"; prev_button.AutoSize = true; prev_button.Location = new Point(150, 100); prev_button.Size = new Size(100, 25); prev_button.Hide(); // prev_button.ForeColor = Color.Black; //prev_button.BackColor = Color.White; //next_button.Margin = new Padding(3, 3, 3, 3); prev_button.Visible = true; prev_button.Show(); prev_button.Click += new EventHandler(previous_Click); Button next_button = new Button(); next_button.Name = "btn_pnl_" + Convert.ToString(i + 1) + "_next"; next_button.Text = "Next Question"; next_button.AutoSize = true; next_button.Location = new Point(10, 100); next_button.Size = new Size(150, 40); next_button.Font = new System.Drawing.Font("Verdana", 12, FontStyle.Bold, GraphicsUnit.Pixel); next_button.ForeColor = Color.FromArgb(28, 52, 60); next_button.BackColor = Color.FromArgb(255, 246, 236); //next_button.Margin = new Padding(3, 3, 3, 3); next_button.Visible = true; next_button.Show(); next_button.Click += new EventHandler(NextButton_Click); Button proceed = new Button(); proceed.Name = "btn_pnl_" + Convert.ToString(i + 1) + "_proceed"; proceed.Text = "Submit"; proceed.AutoSize = true; proceed.Location = new Point(450, 100); proceed.Size = new Size(150, 40); proceed.Font = new System.Drawing.Font("Verdana", 12, FontStyle.Bold, GraphicsUnit.Pixel); proceed.ForeColor = Color.FromArgb(28, 52, 60); proceed.BackColor = Color.FromArgb(255, 246, 236); //next_button.Margin = new Padding(3, 3, 3, 3); proceed.Visible = true; proceed.Hide(); proceed.Click += new EventHandler(proceed_Click); //navPanel.Controls.Add(new Label() { Name = "Q" + Convert.ToString(i + 1), Text = "Questions", Location = new System.Drawing.Point(60, 60), Margin = new Padding(3, 0, 3, 0), Font = new System.Drawing.Font("Verdana", 12, GraphicsUnit.Pixel), AutoSize = false }); navPanel.Controls.Add(next_button); //navPanel.Controls.Add(prev_button); navPanel.Controls.Add(proceed); navPanel.Controls.Add(new Label() { Name = "Quiz_Progress", Text = "Quiz Progress", Location = new System.Drawing.Point(10, 150), Margin = new Padding(3, 0, 3, 0), Font = new System.Drawing.Font("Verdana", 15, FontStyle.Bold, GraphicsUnit.Pixel), AutoSize = true }); ProgressBar prgBar = new ProgressBar(); prgBar.Name = "Progress_bar_quiz"; prgBar.Height = 30; prgBar.Width = 1300; prgBar.Style = ProgressBarStyle.Blocks; prgBar.Location = new Point(10, 180); navPanel.Controls.Add(prgBar); tabarray[i].Controls.Add(navPanel); tabarray[i].Controls.Add(new Panel() { Name = "pnl_tab_Quiz_Navigation" + Convert.ToString(i + 1), Location = new System.Drawing.Point(10, 300), Width = 1000, Height = 100, BackColor = Color.FromArgb(224, 237, 241) }); tbcontrolQuizzes.Controls.Add(tabarray[i]); i++; } tbcontrolQuizzes.Selecting += TbcontrolQuizzes_Selecting; //tbcontrolQuizzes.TabPages[0].Text="Disclaimer"; tbcontrolQuizzes.SelectedIndex = 0; populateQuestionsTableTab(QuizNo); displayQuestion(0, tbcontrolQuizzes.SelectedIndex); }