/// <summary> /// Get Element or Bsonvalue /// </summary> public BsonElement getElement() { BsonValue value = ElBsonValue.getValue(); BsonElement el = new BsonElement(txtElName.Text, value); return(el); }
/// <summary> /// Get Element or Bsonvalue /// </summary> public BsonElement GetElement() { var value = ElBsonValue.GetValue(); var el = new BsonElement(txtElName.Text, value); return(el); }
/// <summary> /// Set Element or Bsonvalue /// </summary> /// <param name="value"></param> public void setElement(Object value) { if (value.GetType() == typeof(BsonElement)) { txtElName.Text = ((BsonElement)value).Name; lblElement.Text = ((BsonElement)value).Name; ElBsonValue.setValue(((BsonElement)value).Value); } else { ElBsonValue.setValue((BsonValue)value); } }