Пример #1
0
        private void Mon_click(object sender, RoutedEventArgs e)
        {
            var cds = new MoneyWindow(_connectionSettings, true);

            cds.Owner = this;
            cds.ShowDialog();
            if (TemporaryStorage.Holder.TryGetValue("ID", out string ID))
            {
                tempMonID    = Convert.ToInt32(ID);
                MoneyID.Text = tempMonID.ToString();
            }
            TemporaryStorage.Holder.Remove("ID");
            var temp = new Data.Money(_connectionSettings, tempMonID);

            MoneyInfo.Text = "Осталось на счету: " + (temp.SummRest);
            temp           = null;
        }
Пример #2
0
        private void Mon_click(object sender, RoutedEventArgs e)
        {
            var cds = new MoneyWindow(_connectionSettings, true);

            cds.Owner = this;
            cds.ShowDialog();
            if (TemporaryStorage.Holder.TryGetValue("ID", out string ID))
            {
                SetFiltersToNull();
                Filter.MoneyNumFilterText = 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");
        }