27 lines
563 B
C#
27 lines
563 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.Media;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace W4Gui.Components
|
|
{
|
|
public class IntUpDown : GenericUpDown<int>
|
|
{
|
|
internal override string formatText(int val)
|
|
{
|
|
string fmt = val.ToString();
|
|
return fmt;
|
|
}
|
|
|
|
internal override int parseValue(string val)
|
|
{
|
|
int ival = 0;
|
|
int.TryParse(val, out ival);
|
|
return ival;
|
|
}
|
|
}
|
|
}
|