Esempio n. 1
0
        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();
        }
Esempio n. 3
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            clsSQL data = new clsSQL();

            data.addIngredient(_ingredient);
            _frmRec.populate("I");
            this.Close();
        }
Esempio n. 4
0
 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.");
     }
 }