Compare commits
2 commits
00c974d48a
...
49119fc6dc
Author | SHA1 | Date | |
---|---|---|---|
49119fc6dc | |||
ef75c63aa2 |
1 changed files with 10 additions and 8 deletions
|
@ -131,8 +131,6 @@ namespace Buypeeb {
|
||||||
item.originalName.ToLower().Contains(this.searchEntry.Text.ToLower()))
|
item.originalName.ToLower().Contains(this.searchEntry.Text.ToLower()))
|
||||||
select item;
|
select item;
|
||||||
|
|
||||||
Console.WriteLine(this.filterChecks["Favourites"].Active);
|
|
||||||
|
|
||||||
// bind treeview columns to watchlist instead of needing to manually sync its liststore
|
// bind treeview columns to watchlist instead of needing to manually sync its liststore
|
||||||
this.itemTreeView = (TreeView)builder.GetObject("TreeViewItems");
|
this.itemTreeView = (TreeView)builder.GetObject("TreeViewItems");
|
||||||
this.items = new ListStore(typeof(YahooAuctionsItem));
|
this.items = new ListStore(typeof(YahooAuctionsItem));
|
||||||
|
@ -176,7 +174,6 @@ namespace Buypeeb {
|
||||||
|
|
||||||
for (int i = 0; i < this.itemTreeView.Model.IterNChildren(); i++) {
|
for (int i = 0; i < this.itemTreeView.Model.IterNChildren(); i++) {
|
||||||
var x = (YahooAuctionsItem)this.itemTreeView.Model.GetValue(iter, 0);
|
var x = (YahooAuctionsItem)this.itemTreeView.Model.GetValue(iter, 0);
|
||||||
Console.WriteLine(x);
|
|
||||||
if (x.id == id) {
|
if (x.id == id) {
|
||||||
return (m.ConvertPathToChildPath(m.GetPath(iter)), m.ConvertIterToChildIter(iter));
|
return (m.ConvertPathToChildPath(m.GetPath(iter)), m.ConvertIterToChildIter(iter));
|
||||||
}
|
}
|
||||||
|
@ -421,14 +418,16 @@ namespace Buypeeb {
|
||||||
aid.Dispose();
|
aid.Dispose();
|
||||||
|
|
||||||
// vry simpl url validation for simpol creachers
|
// vry simpl url validation for simpol creachers
|
||||||
|
// TODO: better. do better.
|
||||||
Regex rx = new Regex(@"^http.+yahoo.+");
|
Regex rx = new Regex(@"^http.+yahoo.+");
|
||||||
if (rx.IsMatch(url)) {
|
if (rx.IsMatch(url)) {
|
||||||
Console.WriteLine("{0} will be added", url);
|
|
||||||
this.UpdateItem(this.settings.Watch(url, name).id);
|
this.UpdateItem(this.settings.Watch(url, name).id);
|
||||||
this.RenderList();
|
this.RenderList();
|
||||||
}
|
}
|
||||||
else {
|
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) {
|
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 md = this.MsgBox("Are you sure you want to remove all ended auctions from the list?");
|
||||||
var r = (ResponseType)md.Run();
|
var r = (ResponseType)md.Run();
|
||||||
md.Dispose();
|
md.Dispose();
|
||||||
|
@ -460,7 +458,12 @@ namespace Buypeeb {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ButtonClearAllClicked(object sender, EventArgs a) {
|
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) {
|
private void ButtonOpenClicked(object sender, EventArgs a) {
|
||||||
|
@ -738,7 +741,6 @@ namespace Buypeeb {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.filterQuery.ToList().ForEach(Console.WriteLine);
|
|
||||||
return this.filterQuery.Contains(item);
|
return this.filterQuery.Contains(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue