private void initFormats() { if (string.IsNullOrEmpty(Numberformat)) Numberformat = "#,##0"; if (string.IsNullOrEmpty(DateTimeFormat)) DateTimeFormat = "yyyy-MM-dd hh:mm"; if (string.IsNullOrEmpty(TimeSpanFormat)) TimeSpanFormat = "hh:mm:ss"; }