30 lines
800 B
C#
30 lines
800 B
C#
using BeWo.Core;
|
|
using BS.Shared;
|
|
using DevExpress.Web.Internal.XmlProcessor;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BeWo
|
|
{
|
|
public static class BeWoAppInfo
|
|
{
|
|
static BeWoAppInfo()
|
|
{
|
|
var baseVersion = new Version(BeWoApp.ShortVersion);
|
|
var stage = BeWoClientReleaseStage.Sandbox;
|
|
var stageVersion = new Version("2.1");
|
|
var feature = BeWoClientFeature.AI;
|
|
|
|
BeWoAppVersion = new BeWoAppVersion(baseVersion, stage, stageVersion, feature);
|
|
}
|
|
|
|
public static BeWoAppVersion BeWoAppVersion { get; private set; }
|
|
|
|
public static bool IsInAiMode => BeWoAppVersion.Feature == BeWoClientFeature.AI;
|
|
public static bool IsInAiDeveloperMode => IsInAiMode && BeWoAppVersion.IsInDeveloperMode;
|
|
}
|
|
}
|