public CreateTemplateDialog(DataTemplateManager.DataTemplate[] existing, Type type) {
      InitializeComponent();

      _existing = existing;
      _type = type;

      tbName.Focus();
    }
      public DataTemplateItem(DataTemplateManager.DataTemplate temp, bool isDefault) {  
        if( temp != null ) {
          Name = temp.Name;
          Object = temp.Object;
          TypeName = temp.TypeName;
        }

        IsDefault = isDefault;
      }
        public ComplexDataTemplateControl(Type type, ServiceBusMQ.DataTemplateManager tempMgr)
        {
            InitializeComponent();

              _type = type;
              _tempMgr = tempMgr;

              BindItems();
        }
Пример #4
0
        public ComplexDataTemplateControl(Type type, ServiceBusMQ.DataTemplateManager tempMgr)
        {
            InitializeComponent();

            _type    = type;
            _tempMgr = tempMgr;

            BindItems();
        }
        private DataTemplateManager GetTempManager()
        {
            if( _tempMgr == null ) {
            _tempMgr = new DataTemplateManager();
              }

              return _tempMgr;
        }