Below is the only code I find regarding 24hr format. What would I be looking for and/or what edits do I need?
Screenshots:
//set text layouts foreach(var field_name in columns_to_show) { var value = currentItem.GetType().GetProperty(field_name).GetValue(currentItem, null); var value_final= ( field_name != "Time" ? value : ( (!_ShowDayNumber ? "" : "(" +((dynamic)value).Day.ToString() +") ") +( _ShowIn24hr_Format ? (((dynamic)value).Hour).ToString()+":"+(((dynamic)value).Minute).ToString() : ((dynamic)value).ToShortTimeString() ) ) ).ToString() ; newLayout.text_layouts[field_name]= new TextLayout(Core.Globals.DirectWriteFactory, value_final, _textformats["newsItem"], ChartPanel.W, (float)_newsItemFont.Size); //Now that we have the layout, measure the widest for each of its items widestTexts[field_name]= Math.Max( ((dynamic) newLayout.text_layouts[field_name]).Metrics.Width, (widestTexts.ContainsKey(field_name) ? widestTexts[field_name] : 0 ) );
Comment