private void Button_Click_2(object sender, RoutedEventArgs e) { string articleREF = reference.Text; string articleNAME = name.Text; string articlePRICE = price.Text; string articleQUANTITY = stock.Text; article newArticle = new article(Int32.Parse(articleREF), articleNAME, Convert.ToDouble(articlePRICE), Int32.Parse(articleQUANTITY)); ManageStock.ModifyArticle(stock_article, Int32.Parse(articleREF), newArticle); DB.ModifyArticle(newArticle, con); Refresh(); }