Exemplo n.º 1
0
 public static string GetPathToResource(string path, string name)
 {
     if (DemoHelper.GetDemoLanguage(typeof(DemoUtils).Assembly) == CodeLanguage.CS)
     {
         return(String.Format("{0}.{1}", path, name));
     }
     else
     {
         return(name);
     }
 }
Exemplo n.º 2
0
 void OnCurrentItemsCollectionChanged()
 {
     if (CurrentItemsCollection != null)
     {
         Type elementType = ((IValueConverter) new IEnumerableToFirstItemConverter()).Convert(CurrentItemsCollection, null, null, CultureInfo.CurrentCulture).GetType();
         CodeText = new CodeLanguageText(DemoHelper.GetDemoLanguage(elementType.Assembly), LoadSourceCode(elementType));
     }
     else
     {
         CodeText = null;
     }
 }