예제 #1
0
        /// <summary>
        /// Wybór liczby wyświetlanych zleceń
        /// </summary>
        private void ComboBoxItemsCount()
        {
            ListNotEmptyCheck();

            OrdersCount count = (OrdersCount)comboBoxOrdersOnPage.SelectedItem;

            if (count.Count == 0)
            {
                ordersCount = _orderStorage.Read().Count();
            }
            else
            {
                ordersCount = count.Count;
            }

            RefreshOrderList();
        }
예제 #2
0
 /// <summary>
 /// Ustawianie domyślnych wartości wyświetlania zamówień w MainWindow
 /// </summary>
 public void DefaultSettings()
 {
     DateFrom    = -1;
     DateTo      = 0;
     OrdersCount = ordersAll;
 }