예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }