Beispiel #1
0
		private static void UpdateText(Widget obj, Hashtable table)
		{
			if (obj.ID == null) return;
			var tmp = obj.ID.ToLower();
			if (table.Contains(tmp))
			{
				if (obj is MenuItem)
				{
					(obj as MenuItem).Text = (string)table[tmp];
				}
				else if (obj is TabPage)
				{
					(obj as TabPage).Text = (string)table[tmp];
				}
				if (obj is TextControl)
				{
					(obj as TextControl).Text = (string)table[tmp];
				}
			}
		}