private void btn_WriteStringToBDB_Click(object sender, RoutedEventArgs e) { string guid = this.tbox_Key.Text; string url = this.tbox_Value.Text; DatabaseEntry key = new DatabaseEntry(); key.Data = Encoding.ASCII.GetBytes(guid); DatabaseEntry value = new DatabaseEntry(); value.Data = Encoding.ASCII.GetBytes(url); bdb.Put(key, value); EMessageBox.Show("写入成功"); }