52 lines
2.0 KiB
C#
52 lines
2.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Client.Utils
|
|
{
|
|
public static class Constants
|
|
{
|
|
|
|
//Folders
|
|
public static String BASE_PATH = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "\\";
|
|
public static String BROWSER_CACHE_FOLDER = BASE_PATH + "LocalStorage";
|
|
public static String STARTUP_CONFIG_SCHEMA_PATH = BASE_PATH + "ClientValidator.xsd";
|
|
public static String STARTUP_CONFIG_PATH = BASE_PATH + "Config.xml";
|
|
public static String CEF_PATH = BASE_PATH + "CEF";
|
|
public static String CEF_X86_PATH = BASE_PATH + "CEF\\Release_X86";
|
|
public static String CEF_X64_PATH = BASE_PATH + "CEF\\Release_X64";
|
|
public static String CEF_LOCALES_PATH = BASE_PATH + "CEF\\Resources\\locales";
|
|
|
|
|
|
//Config Names
|
|
public const string CONFIG_KEY = "Config";
|
|
public const string CLIENT_CONFIG_KEY = "Client";
|
|
public const string CONNECTION_CONFIG_KEY = "Connection";
|
|
public const string VENDORHMI_CONFIG_KEY = "VendorHmi";
|
|
public const string EXTSFT_CONFIG_KEY = "ExtSoftwares";
|
|
public const string SFT_CONFIG_KEY = "Software";
|
|
public enum Rendering {GPU = 0, CPU = 1 };
|
|
|
|
|
|
|
|
//BROWSER OBJECT NAME -> The first letter must be Lower-Case (CEF Settings)
|
|
public const String BROWSER_JS_OBJ_NAME = "cmsClient";
|
|
|
|
//Nc States
|
|
public enum NcState { HIDE = 0, SHOW = 1,READONLY = 2 };
|
|
|
|
|
|
//HMI Size & Position
|
|
public const int HMI_WINDOW_POS_X = 56;
|
|
public const int HMI_WINDOW_POS_Y = 176;
|
|
public const int HMI_WINDOW_WIDTH = 1024;
|
|
public const int HMI_WINDOW_HEIGHT = 768;
|
|
|
|
public const string StartingPage = "index.html";
|
|
public const string ConfigPage = "api/configuration/client";
|
|
|
|
}
|
|
}
|