Files
BeWoPlaner/BeWo/BeWoAppInfo.cs

35 lines
901 B
C#
Raw Normal View History

2025-08-11 12:52:19 +02:00
using BeWo.Core;
using BS.Shared;
using DevExpress.Web.Internal.XmlProcessor;
using System;
2025-08-11 10:40:59 +02:00
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeWo
{
public static class BeWoAppInfo
{
2025-08-11 12:52:19 +02:00
static BeWoAppInfo()
{
var baseVersion = new Version(BeWoApp.ShortVersion);
2026-03-20 11:54:28 +01:00
var stage = BeWoClientReleaseStage.Sandbox;
2026-06-16 14:28:53 +02:00
var stageVersion = new Version("5.1.6");
2026-03-20 11:54:28 +01:00
var feature = BeWoClientFeature.AI;
2025-08-11 12:52:19 +02:00
2026-04-01 00:42:44 +02:00
#if !DEBUG
2026-06-16 14:30:06 +02:00
stage = BeWoClientReleaseStage.Release;
feature = BeWoClientFeature.None;
2026-04-01 00:42:44 +02:00
#endif
2025-08-11 12:52:19 +02:00
BeWoAppVersion = new BeWoAppVersion(baseVersion, stage, stageVersion, feature);
}
public static BeWoAppVersion BeWoAppVersion { get; private set; }
public static bool IsInAiMode => BeWoAppVersion.Feature == BeWoClientFeature.AI;
2025-08-20 12:10:53 +02:00
public static bool IsInAiDeveloperMode => IsInAiMode && BeWoAppVersion.IsInDeveloperMode;
2025-08-11 10:40:59 +02:00
}
}