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++) {
|
||||
var c = this.itemTreeView.Columns[i];
|
||||
|
||||
c.SetCellDataFunc(c.Cells[0], funcs[i]);
|
||||
}
|
||||
|
||||
|
@ -327,8 +326,7 @@ namespace Buypeeb {
|
|||
if (item == null) {
|
||||
this.selectionViewBox.Sensitive = false;
|
||||
infobox.Visible = false;
|
||||
var l = (Label)this.builder.GetObject("LabelSelectedName");
|
||||
l.Text = "buypeeb";
|
||||
(this.builder.GetObject("LabelSelectedName") as Label).Text = "buypeeb";
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -348,8 +346,7 @@ namespace Buypeeb {
|
|||
};
|
||||
|
||||
foreach (var row in info) {
|
||||
var l = (Label)this.builder.GetObject($"LabelSelected{row.Key}");
|
||||
l.Text = row.Value;
|
||||
(this.builder.GetObject($"LabelSelected{row.Key}") as Label).Text = row.Value;
|
||||
}
|
||||
this.UpdateSelectionEndTime();
|
||||
|
||||
|
@ -359,8 +356,7 @@ namespace Buypeeb {
|
|||
noteBuffer.Text = item.notes;
|
||||
}
|
||||
|
||||
var f = (ToggleButton)this.builder.GetObject("ButtonSelectedFavourite");
|
||||
f.Active = item.favourite;
|
||||
(this.builder.GetObject("ButtonSelectedFavourite") as ToggleButton).Active = item.favourite;
|
||||
|
||||
}
|
||||
private void OpenUrl(string url) {
|
||||
|
@ -485,8 +481,7 @@ namespace Buypeeb {
|
|||
}
|
||||
}
|
||||
|
||||
var m = (TreeModelFilter)this.itemTreeView.Model;
|
||||
m.Refilter();
|
||||
(this.itemTreeView.Model as TreeModelFilter).Refilter();
|
||||
|
||||
if (id != null) {
|
||||
// attempt to reselect the item we were just looking at
|
||||
|
@ -910,8 +905,7 @@ namespace Buypeeb {
|
|||
}
|
||||
|
||||
private void RunFilter(object sender, EventArgs a) {
|
||||
var m = (TreeModelFilter)this.itemTreeView.Model;
|
||||
m.Refilter();
|
||||
(this.itemTreeView.Model as TreeModelFilter).Refilter();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue