public static void Show_FormNot(tblNot tblNot) { FormNot temp = new FormNot(tblNot); list_formNot.Add(temp); temp.Show(); }
public bool Delete_Not(tblNot temp) { try { db.tblNots.Remove(temp); db.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public bool Update_Not(tblNot temp) { try { var urun = db.tblNots.First(x => x.ID == temp.ID); urun.Notum = temp.Notum; db.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public tblNot Insert_Not(string temp = "") { try { tblNot notum = new tblNot(); notum.Notum = temp; var rs = db.tblNots.Add(notum); db.SaveChanges(); return(notum); } catch (Exception ex) { return(null); } }
public FormNot(tblNot tblNot) { InitializeComponent(); this.tblNot = tblNot; txtNot.Text = tblNot.Notum; }
private void btnAdd_Click(object sender, EventArgs e) { tblNot tblNot = crud.Insert_Not(""); FormBegin.Show_FormNot(tblNot); }