mirror of
https://github.com/4sval/FModel.git
synced 2026-03-25 03:04:53 -05:00
3.0.2 + allow global messages to be separated by versions
This commit is contained in:
parent
09bb4619a8
commit
402adc4d66
|
|
@ -1,6 +1,7 @@
|
|||
using Newtonsoft.Json.Linq;
|
||||
using RestSharp;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using FProp = FModel.Properties.Settings;
|
||||
|
||||
|
|
@ -31,7 +32,7 @@ namespace FModel.Methods.Utilities
|
|||
JToken FData = JToken.Parse(EndpointContent);
|
||||
|
||||
//GLOBAL MESSAGES
|
||||
JArray FGMessages = FData["Global_Messages"].Value<JArray>();
|
||||
JArray FGMessages = FData["Global_Messages"][Assembly.GetExecutingAssembly().GetName().Version.ToString()].Value<JArray>();
|
||||
if (!string.IsNullOrEmpty(FGMessages[0]["Message"].Value<string>()))
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
|
|
|||
|
|
@ -51,5 +51,5 @@ using System.Windows;
|
|||
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
|
||||
// en utilisant '*', comme indiqué ci-dessous :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("3.0.1.0")]
|
||||
[assembly: AssemblyFileVersion("3.0.1.0")]
|
||||
[assembly: AssemblyVersion("3.0.2.0")]
|
||||
[assembly: AssemblyFileVersion("3.0.2.0")]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user