Exemple #1
0
        private void BtnAddToDataGridView_Click(object sender, EventArgs e)
        {
            _productList.Add(new Product(Guid.Parse(TbxId.Text), TbxName.Text, double.Parse(TbxPrice.Text), TbxCountry.Text, double.Parse(TbxSale.Text)));
            DgridProducts.Rows.Add(DgridProducts.RowCount + 1, TbxId.Text, TbxName.Text, TbxPrice.Text, TbxCountry.Text, TbxSale.Text);

            TbxId.Clear();
            TbxName.Clear();
            TbxPrice.Clear();
            TbxCountry.Clear();
            TbxSale.Clear();
        }
Exemple #2
0
 private void BtnNew_Click(object sender, EventArgs e)
 {
     TbxID.Clear();
     TbxName.Clear();
     TbxVorname.Clear();
     TbxStrasse.Clear();
     TbxPLZ.Clear();
     TbxOrt.Clear();
     TbxTelefon.Clear();
     TbxName.Focus();
 }