GitUI.CommandsDialogs.FormBrowse.UpdateStashCount C# (CSharp) Method

UpdateStashCount() private method

private UpdateStashCount ( ) : void
return void
        private void UpdateStashCount()
        {
            if (Settings.ShowStashCount)
            {
                AsyncLoader.DoAsync(() => Module.GetStashes().Count,
                    (result) => toolStripSplitStash.Text = string.Format(_stashCount.Text, result,
                        result != 1 ? _stashPlural.Text : _stashSingular.Text));
            }
            else
            {
                toolStripSplitStash.Text = string.Empty;
            }
        }
FormBrowse