Skip to content

Commit

Permalink
"limpiando" codigo
Browse files Browse the repository at this point in the history
  • Loading branch information
humbertomoli99 committed Jul 16, 2021
1 parent 99e8c7e commit e333fc1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ConexionSQL-WinUI3/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.UI.Xaml;

using System.Data.SqlClient;

namespace ConexionSQL_WinUI3
Expand Down Expand Up @@ -52,7 +51,7 @@ public void Insertar(object sender, RoutedEventArgs e)
{
try
{
if(TxtName.Text != "" && TxtUrl.Text != "")
if (TxtName.Text != "" && TxtUrl.Text != "")
{
string insertArticle = "insert into TProducts(ProductName,ProductURL,UnitPriceTag,UnitPriceDesc,UnitPriceDescPorc,ProductTimePrice,ShippingPrice,StoreName,UnitsInStock)" +
"values ('" + TxtName.Text + "','" + TxtUrl.Text + "',100,100,100,'2021-07-12',123,NULL,1)";
Expand All @@ -73,4 +72,4 @@ private void Desconectar(object sender, RoutedEventArgs e)
txtStatus.Text = connection.State.ToString();
}
}
}
}

0 comments on commit e333fc1

Please sign in to comment.