Esempio n. 1
0
 private void Mg_articles_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     using (EntryArticle frm = new EntryArticle(vwarticlesBindingSource.Current as vw_articles))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             vwarticlesBindingSource.DataSource = db.vw_articles.ToList();
         }
     }
 }
Esempio n. 2
0
 private void BtnDelete_Click(object sender, EventArgs e)
 {
     using (EntryArticle frm = new EntryArticle(vwarticlesBindingSource.Current as vw_articles))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             vwarticlesBindingSource.DataSource = db.vw_articles.ToList();
         }
     }
     art = vwarticlesBindingSource.Current as vw_articles;
     db.vw_articles.Remove(art);
 }