private void OnStashDeleted(object sender, StashedStateEventArgs e) { if (_repository.Stash.Count == 0) { _stashPopItem.Enabled = false; _stashApplyItem.Enabled = false; } }
private void OnStashCreated(object sender, StashedStateEventArgs e) { if (_repository.Stash.Count == 1) { _stashPopItem.Enabled = true; _stashApplyItem.Enabled = true; } }
private void OnStashDeleted(object sender, StashedStateEventArgs e) { if (e.Object.Index == 0) { var item = RevisionListBox.TryGetItem(e.Object.Revision); if (item != null) { RefreshContent(); } } }
private void OnStashCreated(object sender, StashedStateEventArgs e) { Items.AddSafe(new StashedStateListItem(e.Object)); }
private void OnStashDeleted(object sender, StashedStateEventArgs e) { if(e.Object.Index == 0) { var item = RevisionListBox.TryGetItem(e.Object.Revision); if(item != null) { RefreshContent(); } } }
private void OnStashDeleted(object sender, StashedStateEventArgs e) { if(_repository.Stash.Count == 0) { _stashPopItem.Enabled = false; _stashApplyItem.Enabled = false; } }
private void OnStashCreated(object sender, StashedStateEventArgs e) { if(_repository.Stash.Count == 1) { _stashPopItem.Enabled = true; _stashApplyItem.Enabled = true; } }