private void btDelete_Click(object sender, EventArgs e) { QueryStatements qs = new QueryStatements(); qs.Delete(dgvTable.SelectedRows[0].Index); initShoeTable(); }
private void btOk_Click(object sender, EventArgs e) { System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US"); Shoe shoe = new Shoe(tbName.Text, typeVal[tbType.SelectedIndex], Convert.ToDouble(tbPrice.Text.Replace(',', '.')), Convert.ToInt32(tbNum.Text)); QueryStatements qs = new QueryStatements(); qs.Insert(shoe); this.Close(); }