Skip to content

Commit

Permalink
Fixed #7 Allow Int64 for Seed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Rapp committed Mar 26, 2018
1 parent e60623a commit b377553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AutoNumMgr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -886,7 +886,7 @@ private void WriteAttribute(bool update)
{
EntityName = entity.LogicalName,
AttributeName = logicalname,
Value = int.Parse(seed)
Value = Int64.Parse(seed)
});
}
})
Expand Down

0 comments on commit b377553

Please sign in to comment.