Exemplo n.º 1
0
 /// <summary> Removes "&amp;" from text, which are used in the windows client to show hotkeys. </summary>
 public static string RemoveAccellerator(string text)
 {
     return
         (
         text.Length > 0
                                         ?
         (
             text[0] == '~'
                                                         ? text.Substring(1)
                                                         : TitleUtility.RemoveAccellerators(text)
         )
                                         : String.Empty
         );
 }
Exemplo n.º 2
0
 private void UpdateColumn()
 {
     // TODO: Mnemonics support in the incremental search control
     _column.Title =
         (
             _title.Length > 0
                                         ?
             (
                 _title[0] == '~'
                                                         ? _title.Substring(1)
                                                         : TitleUtility.RemoveAccellerators(_title)
             )
                                         : String.Empty
         );
     _column.ColumnName    = _columnName;
     _column.ControlWidth  = PixelWidth;
     _column.TextAlignment = (WinForms.HorizontalAlignment)_textAlignment;
 }