using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
|
namespace IStation.WinFrmUI
|
{
|
public static class GlobeParas
|
{
|
//当前软件版本
|
public static string CurrentSoftVersion = "";
|
|
//主界面
|
public static IStation.WinFrmUI.MainFluentForm MainForm = null;
|
|
//是否绘制水印
|
public static bool IsPrintWaterMark = true;
|
public static string WaterMarkText = "义维科技";
|
|
//电脑屏幕缩放比例
|
public static float ScreenScale = 1.0f;
|
public static bool IsNeedTip4ScreenScale = false;
|
|
|
/// <summary>
|
/// 登录参数
|
/// </summary>
|
public static IStation.Model.UserInfo CurrentUser { get; set; }
|
|
#region 存放的客户数据的文件夹路径
|
private static string _dataFolder = null;
|
public static string DataFolder
|
{
|
set
|
{
|
_dataFolder = value;
|
}
|
get
|
{
|
if (!string.IsNullOrEmpty(_dataFolder))
|
return _dataFolder;
|
if (string.IsNullOrEmpty(_dataFolder))
|
{
|
_dataFolder = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Data");
|
}
|
else if (_dataFolder.StartsWith(".\\"))
|
{
|
_dataFolder = AppDomain.CurrentDomain.BaseDirectory + _dataFolder.Substring(2, _dataFolder.Length - 2);
|
}
|
else if (_dataFolder.StartsWith(".."))
|
{
|
_dataFolder = AppDomain.CurrentDomain.BaseDirectory.Substring(0, AppDomain.CurrentDomain.BaseDirectory.LastIndexOf(@"\")) + _dataFolder.Substring(2, _dataFolder.Length - 2);
|
}
|
|
return _dataFolder;
|
}
|
}
|
|
#endregion
|
|
|
//当前登陆用户
|
//static public IStation.Model.LoginUser CurrentLoginUser = null;
|
|
////
|
//public static IStation.Bimface.BimFaceClient BimfaceClient
|
//{
|
// get
|
// {
|
// if (_bimfaceClient == null)
|
// {
|
// var bimAppKey = System.Configuration.ConfigurationManager.AppSettings["BIMKEY"];
|
// var bimAppSecret = System.Configuration.ConfigurationManager.AppSettings["BIMTOKEN"];
|
|
// _bimfaceClient = IStation.Bimface.BimFaceClient.GetClient(bimAppKey, bimAppSecret);
|
// }
|
// return _bimfaceClient;
|
// }
|
//}
|
//private static IStation.Bimface.BimFaceClient _bimfaceClient = null;
|
}
|
}
|