public BarEditor()
{
this.InitializeComponent();
this.SetNumericUpDownRange<double>(this.nudOpen);
this.SetNumericUpDownRange<double>(this.nudHigh);
this.SetNumericUpDownRange<double>(this.nudLow);
this.SetNumericUpDownRange<double>(this.nudClose);
this.SetNumericUpDownRange<long>(this.nudVolume);
this.SetNumericUpDownRange<long>(this.nudOpenInt);
DateTimeFormatInfo currentInfo = DateTimeFormatInfo.CurrentInfo;
string str = string.Format("{0} {1}", (object) currentInfo.ShortDatePattern, (object) currentInfo.LongTimePattern);
if (str.Contains(".fff"))
str = str.Replace(".fff", "");
this.dtpDateTime.CustomFormat = str;
this.dtpEnd.CustomFormat = str;
}