Compare commits

..

2 commits

View file

@ -131,8 +131,6 @@ namespace Buypeeb {
item.originalName.ToLower().Contains(this.searchEntry.Text.ToLower()))
select item;
Console.WriteLine(this.filterChecks["Favourites"].Active);
// bind treeview columns to watchlist instead of needing to manually sync its liststore
this.itemTreeView = (TreeView)builder.GetObject("TreeViewItems");
this.items = new ListStore(typeof(YahooAuctionsItem));
@ -176,7 +174,6 @@ namespace Buypeeb {
for (int i = 0; i < this.itemTreeView.Model.IterNChildren(); i++) {
var x = (YahooAuctionsItem)this.itemTreeView.Model.GetValue(iter, 0);
Console.WriteLine(x);
if (x.id == id) {
return (m.ConvertPathToChildPath(m.GetPath(iter)), m.ConvertIterToChildIter(iter));
}
@ -421,14 +418,16 @@ namespace Buypeeb {
aid.Dispose();
// vry simpl url validation for simpol creachers
// TODO: better. do better.
Regex rx = new Regex(@"^http.+yahoo.+");
if (rx.IsMatch(url)) {
Console.WriteLine("{0} will be added", url);
this.UpdateItem(this.settings.Watch(url, name).id);
this.RenderList();
}
else {
Console.WriteLine("{0} is an invalid url", url);
var md = this.MsgBox($"\"{url}\" is not a valid Buyee or Yahoo! Auctions Japan URL.", ButtonsType.Ok);
md.Run();
md.Dispose();
}
}
@ -437,7 +436,6 @@ namespace Buypeeb {
}
private void ButtonClearEndedClicked(object sender, EventArgs a) {
Console.WriteLine("ButtonClearEndedClicked");
var md = this.MsgBox("Are you sure you want to remove all ended auctions from the list?");
var r = (ResponseType)md.Run();
md.Dispose();
@ -460,7 +458,12 @@ namespace Buypeeb {
}
private void ButtonClearAllClicked(object sender, EventArgs a) {
Console.WriteLine("ButtonClearAllClicked");
var md = this.MsgBox("Are you sure you want to clear ALL items?");
if (md.Run() == (int)ResponseType.Ok) {
this.settings.watchlist.Clear();
this.RenderList();
}
md.Dispose();
}
private void ButtonOpenClicked(object sender, EventArgs a) {
@ -738,7 +741,6 @@ namespace Buypeeb {
return false;
}
// this.filterQuery.ToList().ForEach(Console.WriteLine);
return this.filterQuery.Contains(item);
}