Example #1
0
        /// <summary>
        /// Get Element or Bsonvalue
        /// </summary>
        public BsonElement getElement()
        {
            BsonValue   value = ElBsonValue.getValue();
            BsonElement el    = new BsonElement(txtElName.Text, value);

            return(el);
        }
Example #2
0
        /// <summary>
        ///     Get Element or Bsonvalue
        /// </summary>
        public BsonElement GetElement()
        {
            var value = ElBsonValue.GetValue();
            var el    = new BsonElement(txtElName.Text, value);

            return(el);
        }
Example #3
0
 /// <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);
     }
 }