Added valid check to prevent writing record if dino not selected.

This commit is contained in:
Brett Hewitson 2021-06-19 15:51:21 +10:00
parent 652442a30b
commit e66b29f0f5
4 changed files with 39 additions and 7 deletions

View file

@ -18,7 +18,6 @@ namespace ServerManagerTool.Lib
{
List<string> errors = new List<string>();
return errors.ToArray();
}
@ -72,5 +71,10 @@ namespace ServerManagerTool.Lib
public string DisplayName => GameData.FriendlyItemNameForClass(DinoClassString);
public bool IsValid => !string.IsNullOrWhiteSpace(DinoClassString);
public override bool ShouldSave()
{
return IsValid;
}
}
}

View file

@ -131,6 +131,11 @@ namespace ServerManagerTool.Lib
public string DisplayName => GameData.FriendlyItemNameForClass(ItemClassString);
public bool IsValid => !string.IsNullOrWhiteSpace(ItemClassString);
public override bool ShouldSave()
{
return IsValid;
}
}
[DataContract]

View file

@ -5,14 +5,14 @@
<title>Ark Server Manager Version Feed</title>
<subtitle>This is the Ark Server Manager release version feed.</subtitle>
<link href="http://arkservermanager.freeforums.net/" />
<updated>2021-06-19T01:00:00Z</updated>
<updated>2021-06-19T03:00:00Z</updated>
<entry>
<id>urn:uuid:0A751BBA-54B5-40A6-AB09-C6B2539DAFE7</id>
<title>1.1.399 (1.1.399.2)</title>
<summary>1.1.399.2</summary>
<title>1.1.399 (1.1.399.3)</title>
<summary>1.1.399.3</summary>
<link href="" />
<updated>2021-06-19T01:00:00Z</updated>
<updated>2021-06-19T03:00:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml" style="font-family: Arial, Verdana, Helvetica, Sans-Serif;font-size: .8em;">
<p>

View file

@ -5,10 +5,33 @@
<title>Ark Server Manager Version Feed</title>
<subtitle>This is the Ark Server Manager beta version feed.</subtitle>
<link href="http://arkservermanager.freeforums.net/" />
<updated>2021-06-19T01:00:00Z</updated>
<updated>2021-06-19T03:00:00Z</updated>
<entry>
<id>urn:uuid:0A751BBA-54B5-40A6-AB09-C6B2539DAFE7</id>
<id>urn:uuid:C69AFC93-0532-4703-9917-0D4296CBD559</id>
<title>1.1.399 (1.1.399.3)</title>
<summary>1.1.399.3</summary>
<link href="" />
<updated>2021-06-19T03:00:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml" style="font-family: Arial, Verdana, Helvetica, Sans-Serif;font-size: .8em;">
<p>
<u style="font-size: .9em;">BUGFIX</u>
<br/>
<ul>
<li>Server Settings - Prevent Transfer Section - Added valid check to prevent writing record if dino not selected.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:D9B9BAD5-5CAE-4A94-9229-516E8335ED34</id>
<title>1.1.399 (1.1.399.2)</title>
<summary>1.1.399.2</summary>
<link href="" />