コード例 #1
0
        public ProfilesWindow(State state)
        {
            InitializeComponent();
            this.state = state;

            if (state.AllProperties.Count == 0)
            {
                state.PopulateSystemProperties();
            }

            view             = new ProfilesView(this, state);
            this.DataContext = view;
        }
コード例 #2
0
        public ProfilesWindow(State state)
        {
            InitializeComponent();
            this.state = state;

            if (state.AllProperties.Count == 0)
            {
                state.PopulateSystemProperties();
            }

            view             = new ProfilesView(this, state);
            this.DataContext = view;

            // Supply the Search control with the list of sections
            searchTextBox.SectionsList = new List <string> {
                "System", "Display"
            };;
        }