Ejemplo n.º 1
0
 public async Task DeleteProgramPickerRecordAsync(AssociationPackage Package)
 {
     using (SqliteCommand Command = new SqliteCommand("Delete From ProgramPicker Where FileType = @FileType And Path = @Path", Connection))
     {
         Command.Parameters.AddWithValue("@FileType", Package.Extension);
         Command.Parameters.AddWithValue("@Path", Package.ExecutablePath);
         await Command.ExecuteNonQueryAsync().ConfigureAwait(false);
     }
 }
Ejemplo n.º 2
0
 public void DeleteProgramPickerRecord(AssociationPackage Package)
 {
     using (SqliteCommand Command = new SqliteCommand("Delete From ProgramPicker Where FileType = @FileType And Path = @Path", Connection))
     {
         Command.Parameters.AddWithValue("@FileType", Package.Extension.ToLower());
         Command.Parameters.AddWithValue("@Path", Package.ExecutablePath);
         Command.ExecuteNonQuery();
     }
 }