Esempio n. 1
0
        private void ResetForm()
        {
            int intCounter;
            int intNumberOfRecords;

            cboSelectCategory.Items.Clear();

            cboSelectCategory.Items.Add("Select Category");

            TheFindSortedToolCategoryDataSet = TheToolCategoryClass.FindSortedToolCategory();

            intNumberOfRecords = TheFindSortedToolCategoryDataSet.FindSortedToolCategory.Rows.Count - 1;

            for (intCounter = 0; intCounter <= intNumberOfRecords; intCounter++)
            {
                cboSelectCategory.Items.Add(TheFindSortedToolCategoryDataSet.FindSortedToolCategory[intCounter].ToolCategory);
            }

            TheFindToolsByCategoryDataSet = TheToolsClass.FindToolsByCategory("");

            dgrTools.ItemsSource = TheFindToolsByCategoryDataSet.FindToolsByCategory;

            cboSelectCategory.SelectedIndex = 0;
        }