static void PrintThreadChartNames(IThreadTables ThreadDatabase) { Console.WriteLine("Thread Chart Names"); Console.WriteLine("------------------------------"); for (int i = 0; i < ThreadDatabase.Count; i++) { IThreadTable SelectedThradChart = ThreadDatabase[i]; Console.WriteLine(SelectedThradChart.Name); } Console.WriteLine(); }
static IThreadProperty FindThreadByCode(IThreadTables ThreadDatabase, string manufacturer, string code) { IThreadTable SelectedThradChart = ThreadDatabase[manufacturer]; int i = 0; bool found = false; IThreadProperty aThreead = SelectedThradChart[i]; while (i < SelectedThradChart.Count & !found) { if (aThreead.Code == code) { found = true; } else { i++; aThreead = SelectedThradChart[i]; } } return(aThreead); }