guess who just learned about (objectX as typeY).thingSpecificToTypeY();
This commit is contained in:
parent
5103ff4241
commit
365700783b
1 changed files with 5 additions and 11 deletions
|
@ -166,7 +166,6 @@ namespace Buypeeb {
|
||||||
|
|
||||||
for (int i = 0; i < this.itemTreeView.Columns.Length; i++) {
|
for (int i = 0; i < this.itemTreeView.Columns.Length; i++) {
|
||||||
var c = this.itemTreeView.Columns[i];
|
var c = this.itemTreeView.Columns[i];
|
||||||
|
|
||||||
c.SetCellDataFunc(c.Cells[0], funcs[i]);
|
c.SetCellDataFunc(c.Cells[0], funcs[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -327,8 +326,7 @@ namespace Buypeeb {
|
||||||
if (item == null) {
|
if (item == null) {
|
||||||
this.selectionViewBox.Sensitive = false;
|
this.selectionViewBox.Sensitive = false;
|
||||||
infobox.Visible = false;
|
infobox.Visible = false;
|
||||||
var l = (Label)this.builder.GetObject("LabelSelectedName");
|
(this.builder.GetObject("LabelSelectedName") as Label).Text = "buypeeb";
|
||||||
l.Text = "buypeeb";
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -348,8 +346,7 @@ namespace Buypeeb {
|
||||||
};
|
};
|
||||||
|
|
||||||
foreach (var row in info) {
|
foreach (var row in info) {
|
||||||
var l = (Label)this.builder.GetObject($"LabelSelected{row.Key}");
|
(this.builder.GetObject($"LabelSelected{row.Key}") as Label).Text = row.Value;
|
||||||
l.Text = row.Value;
|
|
||||||
}
|
}
|
||||||
this.UpdateSelectionEndTime();
|
this.UpdateSelectionEndTime();
|
||||||
|
|
||||||
|
@ -359,8 +356,7 @@ namespace Buypeeb {
|
||||||
noteBuffer.Text = item.notes;
|
noteBuffer.Text = item.notes;
|
||||||
}
|
}
|
||||||
|
|
||||||
var f = (ToggleButton)this.builder.GetObject("ButtonSelectedFavourite");
|
(this.builder.GetObject("ButtonSelectedFavourite") as ToggleButton).Active = item.favourite;
|
||||||
f.Active = item.favourite;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
private void OpenUrl(string url) {
|
private void OpenUrl(string url) {
|
||||||
|
@ -485,8 +481,7 @@ namespace Buypeeb {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var m = (TreeModelFilter)this.itemTreeView.Model;
|
(this.itemTreeView.Model as TreeModelFilter).Refilter();
|
||||||
m.Refilter();
|
|
||||||
|
|
||||||
if (id != null) {
|
if (id != null) {
|
||||||
// attempt to reselect the item we were just looking at
|
// attempt to reselect the item we were just looking at
|
||||||
|
@ -910,8 +905,7 @@ namespace Buypeeb {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RunFilter(object sender, EventArgs a) {
|
private void RunFilter(object sender, EventArgs a) {
|
||||||
var m = (TreeModelFilter)this.itemTreeView.Model;
|
(this.itemTreeView.Model as TreeModelFilter).Refilter();
|
||||||
m.Refilter();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue