private void button3_Click(object sender, EventArgs e) { if (textBox3.Text != "") { int id; id = Int32.Parse(textBox3.Text); M_Events ev = new M_Events(); ev.Delete("Eventss", id, "EventID"); } }
// Events M_Events SetEventObj(string [] values) { M_Events NewEvent = new M_Events(); NewEvent.Type = values[0]; NewEvent.Place = values[1]; NewEvent.Date = values[2]; NewEvent.Time = values[3]; NewEvent.price = Int32.Parse(values[4]); return(NewEvent); }
void EditEvent(string[] ss) { M_Events NewEvent = SetEventObj(ss); NewEvent.updateuser2("Eventss", id, this.atts, ss, "EventID"); }
void AddEvent(string[] ss) { M_Events NewEvent = SetEventObj(ss); NewEvent.ADD("Eventss", this.atts, ss); }