private static string GetResource(E_DoorsImages ResourceName) { return GetResource(ResourceName.ToString()).ToString(); }
private static void SetResource(E_DoorsImages ResourceName, string Value) { SetResource(ResourceName.ToString(), Value); }
public static void ModifyDoorsPath(E_DoorsImages ResourceName) { string wvRightPath = CurrentDirectory; wvRightPath += CreatePath(GetResource(E_Direcetories.ImagesDir)); wvRightPath += CreatePath(GetResource(ResourceName)); SetResource(ResourceName, wvRightPath); // Application.Current.Resources[roomImage] = wvRightPath; }