Method rename

This commit is contained in:
Dean Herbert 2017-09-06 23:12:32 +09:00
parent da294c9605
commit e5308b6247
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ protected override void AddTabItem(TabItem<Channel> item, bool addToDropdown = t
SelectTab(item);
}
protected override TabItem<Channel> CreateTabItem(Channel value) => new ChannelTabItem(value) { OnRequestClose = onTabClose };
protected override TabItem<Channel> CreateTabItem(Channel value) => new ChannelTabItem(value) { OnRequestClose = tabCloseRequested };
protected override void SelectTab(TabItem<Channel> tab)
{
@ -77,7 +77,7 @@ protected override void SelectTab(TabItem<Channel> tab)
base.SelectTab(tab);
}
private void onTabClose(TabItem<Channel> tab)
private void tabCloseRequested(TabItem<Channel> tab)
{
int totalTabs = TabContainer.Count - 1; // account for selectorTab
int currentIndex = MathHelper.Clamp(TabContainer.IndexOf(tab), 1, totalTabs);