Esempio n. 1
0
        private void Reader_click(object sender, RoutedEventArgs e)
        {
            var cds = new PeopleGrid(_connectionSettings, true);

            cds.Owner = this;
            cds.ShowDialog();
            if (TemporaryStorage.Holder.TryGetValue("ID", out string ID))
            {
                Reader.Text = ID.ToString();
            }
            TemporaryStorage.Holder.Remove("ID");
        }
        private void Ord_click(object sender, RoutedEventArgs e)
        {
            var cds = new PeopleGrid(_connectionSettings, true);

            cds.Owner = this;
            cds.ShowDialog();
            if (TemporaryStorage.Holder.TryGetValue("ID", out string ID))
            {
                SetFiltersToNull();
                Filter.ReaderNumFilterText = ID;
                CountPages();
                var _connection = new SqlConnection(_connectionSettings.ConnectionString);
                listSortDirection          = Order.SelectedIndex == 0 ? ListSortDirection.Ascending : ListSortDirection.Descending;
                _BufCommand                = new SqlCommand(DBHelper.FormSqlGrid(displayIndex, listSortDirection, Filter._filters, Filter.TableSourceForSort, SqlCommands.GridPart1, SqlCommands.GridByPagePart2), _connection);
                _BufCommand.CommandTimeout = 30;
                UpdateGrid();
            }
            TemporaryStorage.Holder.Remove("ID");
        }