private void StartBtn_Click(object sender, EventArgs e) { StartBtn.Hide(); PlusBtn.Show(); MultiBtn.Show(); CounterLbl.Show(); ValLbl.Show(); NeedLbl.Show(); Nval = Doubler.RandVal(); NeedLbl.Text = $"Need to get: {Nval}"; CancelBtn.Show(); CompActLbl.Show(); RestartBtn.Show(); CompActLbl.Text = $"Computer Actions count: {Doubler.ResSearch(Nval)}"; }
private void PayFineBtn_Click(object sender, EventArgs e) { string Card_ID = dataGridView1.CurrentRow.Cells["Card_ID"].Value.ToString(); string Query = "select * from fine_view_all_unpaid where Card_ID like '%" + Card_ID + "%';"; try { MySqlDataAdapter Adap = new MySqlDataAdapter(Query, Connection); DataSet Data1 = new DataSet(); Adap.Fill(Data1); dataGridView1.DataSource = Data1.Tables[0]; FinPayBtn.Show(); MessageBox.Show("Select the fine corresponding to the book checked out and click execute."); } catch (MySqlException ex) { MessageBox.Show(ex.Message); } FinPayBtn.Show(); CancelBtn.Show(); }