12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Reflection;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Threading;
- namespace HistoryDLL
- {
- public class GlobalFunction
- {
- public static bool isSolutionUsing4K = false;
- public static bool isUseRightToLeftText = false;
-
- public static string rootPath = System.AppDomain.CurrentDomain.BaseDirectory;
-
- public static string projectname = Assembly.GetExecutingAssembly().GetName().Name;
-
- public static string dataPath = rootPath + @"Data\";
- public static string historyWalldataFolderName = "HistoryWallPage";
-
- public static string settingPath => dataPath + $"{historyWalldataFolderName}\\Setting\\";
-
- public static string thumbPath => dataPath + $"{historyWalldataFolderName}\\Thumb\\";
-
- public static string JsonFilePath => GlobalFunction.dataPath + $"{historyWalldataFolderName}\\HistoryWallData\\HistoryFile.ini";
-
- public static string EventFileImgPath => GlobalFunction.dataPath + $"{historyWalldataFolderName}\\HistoryImage\\";
-
- public static string ConfigSettingFilePath => settingPath + @"ConfigSetting.ini";
-
- public static string CanChangeLangPath => settingPath + @"ChangeLan.txt";
- public static string CanHomeClickPath => settingPath + @"HomeClick.txt";
- public static string AutoRunVelocityPath => settingPath + @"Velocity.txt";
- public static string UsingDisplayOn4KsPath => settingPath + @"UsingViewerConfigFor4K.txt";
-
- public static string[] imgDimList = { ".jpg", ".png", ".bmp", ".jpeg" };
-
- public static string[] mediaDimList = { ".avi", ".mp4", "mpeg", ".mpg", ".wmv" };
-
- public static DispatcherTimer CheckAutoRunTimer = new DispatcherTimer();
- public static bool IsVideoPlay = false;
- public static bool isVideoPlay
- {
- set
- {
- if (value)
- {
- CheckAutoRunTimer.Stop();
- }
- else
- {
- CheckAutoRunTimer.Start();
- }
- IsVideoPlay = value;
- }
- get { return IsVideoPlay; }
- }
- }
- }
|