예제 #1
0
 public XmlSerializeOption()
 {
     CData        = true;
     Declaration  = true;
     StartElement = true;
     Converters.AddRange(GlobalConverters.GetConverters(typeof(XmlConverter)));
 }
        private void CollectionComboBox_SelectionChanged(object obj)
        {
            // setup current entity
            CurrentEntity = GlobalConverters.ConvertToEntities <Entities>(obj);

            // fill entities collection
            SetupEntitiesCollection();

            // let user pick up entity
            IsTypeOfEntityPicked = true;
        }
예제 #3
0
        private void SelectionChanged(object obj)
        {
            CurrentEntity = GlobalConverters.ConvertToEntities <Entities>(obj);

            IsInsertEnabled = false;
        }
예제 #4
0
 private void SelectionChanged(object obj)
 {
     CurrentEntity = GlobalConverters.ConvertToEntities <Entities>(obj);
 }
예제 #5
0
 /// <summary>
 /// 初始化 <see cref="JsonSerializeOption"/> 类的新实例。
 /// </summary>
 public JsonSerializeOption()
 {
     Indent      = false;
     KeyHandling = JsonKeyHandling.Quote;
     Converters.AddRange(GlobalConverters.GetConverters(typeof(JsonConverter)));
 }