Exemplo n.º 1
0
        private void ComboBoxSecond_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            category_second categorySecond = ComboBoxSecond.SelectedItem as category_second;

            if (categorySecond != null)
            {
                ComboBoxThird.ItemsSource = CrowFoundMgr.Instance.GetCategoryThirds(categorySecond.cs_id);
                if (ComboBoxThird.HasItems)
                {
                    ComboBoxThird.SelectedIndex = 0;
                }
            }
        }
Exemplo n.º 2
0
        public category_second GetSecondCategory()
        {
            category_second category = ComboBoxSecond.SelectedItem as category_second;

            return(category);
        }