Exemplo n.º 1
0
        public void CategoryAttribute_ConstructorImplementationsCheck()
        {
            var implementations   = StateImplementations.GetValues().ToArray();
            var categoryAttribute = new CategoryAttribute(Value, implementations);

            Assert.AreEqual(Value, categoryAttribute.Value);
            Assert.AreEqual(implementations.Length, categoryAttribute.Implementations.Count);
        }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            MainGrid.DataContext = this;
            TemplateDescriptions = new ObservableCollection <TemplateDescription>();

            _browserDialog = new FolderBrowserDialog();

            DbSource     = "(local)";
            _dataFactory = new DataFactory(DbSource);   // null dbSource defaults to (local)

            StateComboBox.ItemsSource = StateImplementations.GetValues();
        }