Fixed missing ) in Notifications

This commit is contained in:
Marcus 2025-12-09 13:14:35 +01:00
parent 58ea71ec41
commit d1ab441fc4

View File

@ -100,7 +100,7 @@ namespace ZKuP
IntToBool iTb = new IntToBool();
//SQL.WriteSQL($"INSERT INTO {MainWindow.table}.notification (Username, Visitor, SMS, SMSRepeat) VALUES ('{Environment.UserName}', '{cBVisitor.SelectedValue.ToString()}', '{tbSMS.Text}', '{iTb.ConvertBack(rbRepeatYes.IsChecked.Value, typeof(int), null, null)}')");
SQL.CreateAndWriteSQL($"INSERT INTO {MainWindow.table}.notification (Username, Visitor, SMS, SMSRepeat) VALUES (@UserName, @cBVisitor, @tbSMS, @iTb", new List<MySqlParameter>()
SQL.CreateAndWriteSQL($"INSERT INTO {MainWindow.table}.notification (Username, Visitor, SMS, SMSRepeat) VALUES (@UserName, @cBVisitor, @tbSMS, @iTb)", new List<MySqlParameter>()
{
new MySqlParameter("@UserName", Environment.UserName),
new MySqlParameter("@cBVisitor", cBVisitor.SelectedValue.ToString()),