fixed formatting
This commit is contained in:
parent
04f8e4dbdb
commit
9c335a73d0
1 changed files with 23 additions and 26 deletions
|
@ -26,7 +26,6 @@ using System.Threading.Tasks;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using Gtk;
|
using Gtk;
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace Buypeeb {
|
namespace Buypeeb {
|
||||||
public struct ItemColumns {
|
public struct ItemColumns {
|
||||||
|
@ -251,8 +250,7 @@ namespace Buypeeb {
|
||||||
this.selectionViewBox.Sensitive = item.ready;
|
this.selectionViewBox.Sensitive = item.ready;
|
||||||
infobox.Visible = true;
|
infobox.Visible = true;
|
||||||
|
|
||||||
var info = new Dictionary<string, string>
|
var info = new Dictionary<string, string> {
|
||||||
{
|
|
||||||
{ "Name", item.name },
|
{ "Name", item.name },
|
||||||
{ "YahooName", item.originalName },
|
{ "YahooName", item.originalName },
|
||||||
{ "Price", item.PriceJPY() },
|
{ "Price", item.PriceJPY() },
|
||||||
|
@ -511,18 +509,17 @@ namespace Buypeeb {
|
||||||
if (item.ready) {
|
if (item.ready) {
|
||||||
if (!item.available) {
|
if (!item.available) {
|
||||||
ending = "Ended";
|
ending = "Ended";
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
var now = DateTime.Now;
|
var now = DateTime.Now;
|
||||||
var end = item.endDate.ToLocalTime();
|
var end = item.endDate.ToLocalTime();
|
||||||
// TODO: should we show the year if the auction ends next year? 0uo
|
// TODO: should we show the year if the auction ends next year? 0uo
|
||||||
if (end.DayOfYear != now.DayOfYear)
|
if (end.DayOfYear != now.DayOfYear) {
|
||||||
{
|
|
||||||
// the auction isn't ending today, so we should show the day it's ending on for clarity
|
// the auction isn't ending today, so we should show the day it's ending on for clarity
|
||||||
ending += end.ToString("MMM d ");
|
ending += end.ToString("MMM d ");
|
||||||
}
|
}
|
||||||
ending += end.ToString("HH:mm");
|
ending += end.ToString("HH:mm");
|
||||||
if (this.settings.displaySecondsInList)
|
if (this.settings.displaySecondsInList) {
|
||||||
{
|
|
||||||
// add the seconds on to the end
|
// add the seconds on to the end
|
||||||
ending += end.ToString(":ss");
|
ending += end.ToString(":ss");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue