public static string GetUIControlTemplate(UIControlType type, string key) { switch (type) { case UIControlType.TextBox: return(UIInfo_TextBox.Template(key)); case UIControlType.TextLabel: return(UIInfo_TextLabel.Template(key)); case UIControlType.NumberBox: return(UIInfo_NumberBox.Template(key)); case UIControlType.CheckBox: return(UIInfo_CheckBox.Template(key)); case UIControlType.ComboBox: return(UIInfo_ComboBox.Template(key)); case UIControlType.Image: return(UIInfo_Image.Template(key)); case UIControlType.TextFile: return(UIInfo_TextFile.Template(key)); case UIControlType.Button: return(UIInfo_Button.Template(key)); case UIControlType.WebLabel: return(UIInfo_WebLabel.Template(key)); case UIControlType.RadioButton: return(UIInfo_RadioButton.Template(key)); case UIControlType.Bevel: return(UIInfo_Bevel.Template(key)); case UIControlType.FileBox: return(UIInfo_FileBox.Template(key)); case UIControlType.RadioGroup: return(UIInfo_RadioGroup.Template(key)); default: throw new InvalidOperationException("Internal Logic Error at UIControl.GetUIControlTemplate"); } }