Esempio n. 1
0
		private void AddProgram(ProgramDescriptor programDescriptor)
		{
			TreeNode node = new TreeNode(programDescriptor.ToString());
			node.Tag = programDescriptor;
			_programNode.Nodes.Add(node);
		}
Esempio n. 2
0
		private void LoadPrograms()
		{
			IList<ProgramDescriptor> programs = ProgramsCache.Programs;
			ProgramDescriptor[] programsToSort = new ProgramDescriptor[programs.Count];
			programs.CopyTo(programsToSort, 0);

			Array.Sort<ProgramDescriptor>(programsToSort, new ProgramDescriptorComparer());

			foreach (ProgramDescriptor descriptor in programsToSort)
			{
				AddProgram(descriptor);
			}
		}