コード例 #1
0
        /// <summary>
        /// this is needed because _revsionGrid is null when TranslationApp is called
        /// </summary>
        /// <param name="revGridCommands"></param>
        /// <returns></returns>
        private string GetShortcutKeyDisplayStringFromRevisionGridIfAvailable(GitUI.RevisionGrid.Commands revGridCommands)
        {
            if (_revisionGrid == null)
            {
                return(null);
            }

            return(_revisionGrid.GetShortcutKeys(revGridCommands).ToShortcutKeyDisplayString());
        }
コード例 #2
0
 /// <summary>
 /// this is needed because _revsionGrid is null when TranslationApp is called
 /// </summary>
 private string GetShortcutKeyDisplayStringFromRevisionGridIfAvailable(RevisionGrid.Commands revGridCommands)
 {
     return(_revisionGrid?.GetShortcutKeys(revGridCommands).ToShortcutKeyDisplayString());
 }