예제 #1
0
        private void btDelete_Click(object sender, EventArgs e)
        {
            QueryStatements qs = new QueryStatements();

            qs.Delete(dgvTable.SelectedRows[0].Index);
            initShoeTable();
        }
예제 #2
0
        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();
        }