private static void SetResource(E_KitchenImages ResourceName, string Value) { SetResource(ResourceName.ToString(), Value); }
public static void ModifyKitchenImagesPath(E_KitchenImages ResourceName) { string wvRightPath = CurrentDirectory; wvRightPath += CreatePath(GetResource(E_Direcetories.ImagesDir)); wvRightPath += CreatePath(GetResource(ResourceName)); SetResource(ResourceName, wvRightPath); // Application.Current.Resources[roomImage] = wvRightPath; }
// not used /// <summary> /// Method to set the right path to the resources of the sketches in the kitchen room /// </summary> /// <param name="rightPath"></param> /// <param name="numHat"></param> public static void SetClothSketchesPath(string rightPath, E_KitchenImages numHat) { SetResource(numHat, rightPath); }
//public because I need them in Room.xaml.cs public static string GetResource(E_KitchenImages ResourceName) { return GetResource(ResourceName.ToString()).ToString(); }