ok aggiunta preferenze per card status map

This commit is contained in:
zaccaria.majid
2023-11-08 10:17:39 +01:00
parent ee63a8d08a
commit f5deb531d2
6 changed files with 72 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2311.808</Version>
<Version>6.16.2311.810</Version>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP_TAB_SERV</RootNamespace>
</PropertyGroup>
+2
View File
@@ -106,6 +106,8 @@ namespace MP_TAB_SERV.Pages
protected override async Task OnInitializedAsync()
{
var df = MServ.UserPrefGet("DefCardMode");
ShowCard = df == "shrink" ? false : true;
isCalcSize = true;
ListMSE = null;
SetupConf();
+66
View File
@@ -64,6 +64,15 @@
<option value="EN">EN</option>
</select>
</li>
<li class="list-group-item">
<div class="text-center mb-1 fw-bold">Modalità di visualizzazione delle macchine in 'Mappa Stato'</div>
<div class="d-flex justify-content-center">
<div class="btn-group" role="group" aria-label="Basic outlined example">
<button class="btn btn-sm @btnShrinkStyle" @onclick='()=>setDefCardMode("shrink")'>Shrink</button>
<button class="btn btn-sm @btnFullStyle" @onclick='()=>setDefCardMode("full")'>Full</button>
</div>
</div>
</li>
</ul>
</div>
</div>
@@ -97,6 +106,11 @@
await Task.Delay(1);
langIns = lang;
}
protected async Task setDefCardMode(string defCardMode)
{
await Task.Delay(1);
defCardModeIns = defCardMode;
}
protected string btnMsStyle
{
@@ -130,6 +144,38 @@
return answ;
}
}
protected string btnShrinkStyle
{
get
{
string answ = "";
if (defCardModeIns == "shrink")
{
answ = "btn-primary";
}
else
{
answ = "btn-outline-secondary";
}
return answ;
}
}
protected string btnFullStyle
{
get
{
string answ = "";
if (defCardModeIns == "full")
{
answ = "btn-primary";
}
else
{
answ = "btn-outline-secondary";
}
return answ;
}
}
protected string _tcModIns { get; set; } = "";
@@ -145,6 +191,7 @@
}
}
}
protected string _langIns { get; set; } = "";
protected string langIns
@@ -159,6 +206,20 @@
}
}
}
protected string _defCardMode { get; set; } = "";
protected string defCardModeIns
{
get => _defCardMode;
set
{
if (_defCardMode != value)
{
_defCardMode = value;
MsgServ.UserPrefSave("DefCardMode", value);
}
}
}
public int Height { get; set; } = 0;
public int Width { get; set; } = 0;
@@ -191,6 +252,11 @@
{
langIns = langPrefItem;
}
var defCardPrefItem = MsgServ.UserPrefGet("DefCardMode");
if (defCardPrefItem != null)
{
langIns = defCardPrefItem;
}
await Task.Delay(1);
if (string.IsNullOrEmpty(currIpv4))
{
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2311.808</h4>
<h4>Versione: 6.16.2311.810</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2311.808
6.16.2311.810
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2311.808</version>
<version>6.16.2311.810</version>
<url>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/MP-TAB-SERV.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>