Exemple #1
0
        private void AddColumn(QueryToken token)
        {
            if (!AllowChangeColumns)
            {
                return;
            }

            string result = token.NiceName();

            if (ValueLineBox.Show <string>(ref result, SearchMessage.NewColumnSName.NiceToString(), SearchMessage.ChooseTheDisplayNameOfTheNewColumn.NiceToString(), SearchMessage.Name.NiceToString(), null, null, Window.GetWindow(this)))
            {
                ClearResults();

                AddListViewColumn(new Column(token, result));
            }
        }
Exemple #2
0
        private void renameMenu_Click(object sender, RoutedEventArgs e)
        {
            if (!AllowChangeColumns)
            {
                return;
            }

            SortGridViewColumnHeader gvch = GetHeaderColumnHeader(sender);

            string result = gvch.RequestColumn.DisplayName;

            if (ValueLineBox.Show <string>(ref result, SearchMessage.NewColumnSName.NiceToString(), SearchMessage.ChooseTheDisplayNameOfTheNewColumn.NiceToString(), SearchMessage.Name.NiceToString(), null, null, Window.GetWindow(this)))
            {
                gvch.RequestColumn.DisplayName = result;
                gvch.Content = result;
            }
        }