Compare commits

..

No commits in common. "00c974d48a7c875303fd1d06251423f2f6087974" and "259193de8b1b357e8adcf6dd6339ffa2fb75c051" have entirely different histories.

2 changed files with 100 additions and 69 deletions

View file

@ -231,9 +231,8 @@ namespace Buypeeb {
this.items.EmitRowChanged(pathAndIter.path, pathAndIter.iter);
}
if (item == this.selectedItem) {
// if the user has this item selected and it just became ready, enable the selection box and redraw the info
// if the user has this item selected and it just became ready, enable the selection box
this.selectionViewBox.Sensitive = true;
this.UpdateSelectionView();
}
});
@ -317,11 +316,11 @@ namespace Buypeeb {
{ "YahooName", item.originalName },
{ "Price", item.priceJPY },
{ "PriceAUD", item.priceAUD },
{ "Ending", "Please wait..." },
{ "Ending", "..." },
{ "Bids", $"{item.bids}" },
{ "BuyItNow", item.winPrice == 0 ? "No" : $"{item.winPriceJPY} ({item.winPriceAUD})" },
{ "AutoExtension", item.autoExtension ? "Yes" : "No" },
{ "LastUpdated", $"Last updated: {(item.ready ? item.lastUpdated.ToString("MMM dd, HH:mm:ss") : "Right now!")}" }
{ "LastUpdated", "Last updated: heeeenlo" }
};
foreach (var row in info) {
@ -534,6 +533,9 @@ namespace Buypeeb {
private void ButtonExportClicked(object sender, EventArgs a) {
var readyQuery = from item in this.settings.watchlist.Values.ToList() where !item.ready select item;
foreach (var item in readyQuery) {
Console.WriteLine(item.name);
}
if (readyQuery.Count() != 0) {
var md = MsgBox("Please wait for all items to update before exporting a CSV.", ButtonsType.Ok);

View file

@ -642,7 +642,6 @@
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="row_spacing">5</property>
<property name="column_spacing">10</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
@ -703,6 +702,80 @@
<property name="top_attach">4</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="LabelSelectedYahooName">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">something in japanese</property>
<property name="ellipsize">end</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="LabelSelectedPrice">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">¥12345</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="LabelSelectedPriceAUD">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">$123.45</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="LabelSelectedEnding">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">1h 17m 23s</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="LabelSelectedBids">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">5</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">4</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_start">10</property>
<property name="margin_end">10</property>
<property name="hexpand">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
@ -727,68 +800,6 @@
<property name="top_attach">6</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="LabelSelectedYahooName">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">something in japanese</property>
<property name="ellipsize">end</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="LabelSelectedPrice">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">¥12345</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="LabelSelectedPriceAUD">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">$123.45</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="LabelSelectedEnding">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">1h 17m 23s</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="LabelSelectedBids">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">5</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">4</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="LabelSelectedBuyItNow">
<property name="visible">True</property>
@ -797,7 +808,7 @@
<property name="label" translatable="yes">Yes</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="left_attach">2</property>
<property name="top_attach">5</property>
</packing>
</child>
@ -809,10 +820,28 @@
<property name="label" translatable="yes">N/A</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="left_attach">2</property>
<property name="top_attach">6</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="expand">False</property>