예제 #1
0
        public MainWindow(ICatalogManager catMgr)
        {
            InitializeComponent();

            _catMgr = catMgr;

            var root = new TreeViewItem();

            root.Header = "Tree";

            var child = CreateTreeViewItem("Initial Data Typing");

            child.Tag = typeof(InitialDataTypingForm);
            root.Items.Add(child);

            child     = CreateTreeViewItem("Descriptions");
            child.Tag = typeof(DescriptionsForm);
            root.Items.Add(child);

            MainTreeView.Items.Add(root);

            root.ExpandSubtree();

            AreaComboBox.AddHandler(TextBoxBase.TextChangedEvent,
                                    new TextChangedEventHandler(ComboBox_TextChanged));
        }
예제 #2
0
        public MainWindow(ICatalogManager catMgr, IFinancialManager finMgr)
        {
            InitializeComponent();

            _catMgr = catMgr;
            _finMgr = finMgr;

            var root = new TreeViewItem();

            root.Header = "Tree";

            var child = new TreeViewItem();

            child.Header = "Initial Data Typing";
            root.Items.Add(child);

            child        = new TreeViewItem();
            child.Header = "Descriptions";
            root.Items.Add(child);

            MainTreeView.Items.Add(root);

            root.ExpandSubtree();

            AreaComboBox.AddHandler(TextBoxBase.TextChangedEvent,
                                    new TextChangedEventHandler(ComboBox_TextChanged));
        }