Esempio n. 1
0
        private void treeViewComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            var newValue = (string)treeViewComboBox.SelectedItem;

            if (testExplorerModel.CurrentTreeViewCategory == newValue)
            {
                return;
            }

            // if updateFlag is set, then the index has changed because
            // we are populating the list, so no need to refresh!
            if (updateFlag)
            {
                return;
            }

            SaveState();
            testExplorerController.ChangeTreeCategory(newValue, pm => RestoreState());
        }