private void button1_Click(object sender, EventArgs e) { DBConnect db = new DBConnect(); db.insertColor(color.Text); MessageBox.Show("COLOUR HAS BEEN ADDED SUCCESSFULLY"); this.Hide(); barscanner b = new barscanner(); b.BringToFront(); dashboard d = new dashboard(); d.Reset(); }
private void button2_Click(object sender, EventArgs e) { DBConnect db = new DBConnect(); db.insertBatch(eventname.Text); MessageBox.Show("EVENT HAS BEEN ADDED SUCCESSFULLY"); this.Hide(); barscanner b = new barscanner(); b.BringToFront(); dashboard d = new dashboard(); d.Reset(); }
private void button1_Click(object sender, EventArgs e) { DBConnect db = new DBConnect(); string eventname = this.eventid.Text.ToString(); string colorname = this.colorid.Text.ToString(); string no = this.nooftickets.Text; int n = db.CountTickets(); for (int i = 0; i < Convert.ToInt32(no); i++) { db.InsertTickets(eventname, "101" + n + i, colorname); } MessageBox.Show("TICKETS HAVE BEEN SAVED SUCCESSFULLY"); this.Hide(); barscanner b = new barscanner(); b.BringToFront(); dashboard d = new dashboard(); d.Reset(); d.Notifier("TICKETS HAVE BEEN SAVED SUCCESSFULLY"); }