private void btnAddStyle_Click(object sender, EventArgs e) { clsSQL data = new clsSQL(); data.addStyle(_style); _frmRec.populate("S"); this.Close(); }
private void btnAddCategory_Click(object sender, EventArgs e) { clsSQL data = new clsSQL(); data.addCategory(_cat); _frmRec.populate("C"); this.Close(); }
private void btnAdd_Click(object sender, EventArgs e) { clsSQL data = new clsSQL(); data.addIngredient(_ingredient); _frmRec.populate("I"); this.Close(); }
private void btnAdd_Click(object sender, EventArgs e) { if (style != null && style != "") { _data.addStyle(style); this.Hide(); _frmRec.populate("S"); _frmRec.Show(); } else { MessageBox.Show("Enter a style or close this window to exit adding a new style."); } }