public void Import() { try { ModelSetting importingSetting = _rep.Setting.SingleOrDefault(); CurrentAppTheme = importingSetting.CurrentAppTheme; CurrentAppAccent = importingSetting.CurrentAppAccent; PathToFolderFiles = importingSetting.PathToFolderFiles; AllTimeOff = importingSetting.AllTimeOff.Value.TimeOfDay; IsBackgroundImage = importingSetting.IsBackgroundImage; IsTransperentTile = importingSetting.IsTransperentTile; IsKioskMode = importingSetting.IsKioskMode; PathToLicense = importingSetting.PathToLicense; NumberLeftMonitor = importingSetting.NumberLeftMonitor; NumberRightMonitor = importingSetting.NumberRightMonitor; TimeAdvertising = importingSetting.TimeAdvertising.Value.TimeOfDay; if (IsBackgroundImage) { App.MainWnd.Background = PersonalizationHelper.BitmapFromPath(App.PathToBackgroundImage); } PersonalizationHelper.SetStyleTile(IsTransperentTile); } catch (Exception ex) { App.SendException(ex); } }
public void ChangeBackgroundToOldImage() { try { App.MainWnd.Background = PersonalizationHelper.BitmapFromPath(App.PathToBackgroundImage); App.Setting.IsBackgroundImage = true; } catch (Exception ex) { App.SendException(ex); } }
public void ChangeBackgroundToOldImage() { App.MainWnd.Background = PersonalizationHelper.BitmapFromPath(App.PathToBackgroundImage); App.Setting.IsBackgroundImage = true; }