From b37755394ef24282fdffcf160d02865fca4cccfe Mon Sep 17 00:00:00 2001 From: Jonas Rapp Date: Mon, 26 Mar 2018 08:26:54 +0200 Subject: [PATCH] Fixed #7 Allow Int64 for Seed. --- AutoNumMgr.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AutoNumMgr.cs b/AutoNumMgr.cs index e48d7a9..67ece5e 100644 --- a/AutoNumMgr.cs +++ b/AutoNumMgr.cs @@ -687,7 +687,7 @@ private void NumberConditionsChanged() { txtHint.Text = string.Empty; var seed = txtSeed.Enabled ? txtSeed.Text.Trim() : string.Empty; - if (!string.IsNullOrEmpty(seed) && !int.TryParse(seed, out int max)) + if (!string.IsNullOrEmpty(seed) && !Int64.TryParse(seed, out Int64 max)) { txtHint.Text = $"Seed '{seed}' is not a valid number."; return; @@ -886,7 +886,7 @@ private void WriteAttribute(bool update) { EntityName = entity.LogicalName, AttributeName = logicalname, - Value = int.Parse(seed) + Value = Int64.Parse(seed) }); } })