public static void UpdateMemberInfo(Member OldMember, Member NewMember) { string UpdateRequest = DataBaseCommands.UpdateMemberInfo(OldMember, NewMember); command = new SQLiteCommand(UpdateRequest, connection); try { connection.Open(); command.ExecuteNonQuery(); connection.Close(); } catch (Exception e) { MessageBox.Show("Error: " + e.Message); } }
public static void UpdateMemberInfo(string Key, string Value, string InitKey, string InitValue) { string UpdateRequest = DataBaseCommands.UpdateMemberInfo(Key, Value, InitKey, InitValue); command = new SQLiteCommand(UpdateRequest, connection); try { connection.Open(); command.ExecuteNonQuery(); connection.Close(); } catch (Exception e) { MessageBox.Show("Error: " + e.Message); } }