Compare commits
No commits in common. "49119fc6dcf7d23fa3a2d1198891853c14aa9994" and "00c974d48a7c875303fd1d06251423f2f6087974" have entirely different histories.
49119fc6dc
...
00c974d48a
1 changed files with 8 additions and 10 deletions
|
@ -131,6 +131,8 @@ 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));
|
||||
|
@ -174,6 +176,7 @@ 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));
|
||||
}
|
||||
|
@ -418,16 +421,14 @@ 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 {
|
||||
var md = this.MsgBox($"\"{url}\" is not a valid Buyee or Yahoo! Auctions Japan URL.", ButtonsType.Ok);
|
||||
md.Run();
|
||||
md.Dispose();
|
||||
Console.WriteLine("{0} is an invalid url", url);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -436,6 +437,7 @@ 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();
|
||||
|
@ -458,12 +460,7 @@ namespace Buypeeb {
|
|||
}
|
||||
|
||||
private void ButtonClearAllClicked(object sender, EventArgs a) {
|
||||
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();
|
||||
Console.WriteLine("ButtonClearAllClicked");
|
||||
}
|
||||
|
||||
private void ButtonOpenClicked(object sender, EventArgs a) {
|
||||
|
@ -741,6 +738,7 @@ namespace Buypeeb {
|
|||
return false;
|
||||
}
|
||||
|
||||
// this.filterQuery.ToList().ForEach(Console.WriteLine);
|
||||
return this.filterQuery.Contains(item);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue