private void bunifuFlatButton4_Click(object sender, EventArgs e) { try { Bazar b = new Bazar(); b.uid = Int32.Parse(comboBox1.SelectedValue.ToString()); b.amount = float.Parse(bunifuMaterialTextbox1.Text); b.date = DateTime.Today; db.Bazars.InsertOnSubmit(b); db.SubmitChanges(); updateMess(); MessageBox.Show("Shopping Added.."); } catch (Exception em) { MessageBox.Show("Invalid input!!\nInput numeric value in amount box first\nthen select a member."); } }
partial void UpdateBazar(Bazar instance);
partial void DeleteBazar(Bazar instance);
partial void InsertBazar(Bazar instance);