/// <summary>
        /// Gets data from SELECT and puts them into CustomerSelectedList
        /// columns: 0 - name, 1 - surname, 2 - address, 3 -email, 4 - paid
        /// </summary>
        /// <param name="iResult"></param>
        public static void GetSelectedCustomers(MySqlDataReader iResult)
        {
            //MySqlDataReader wynik = TworzenieZapytan.WykonajSelecta(iSelect);

            CustomerActions.ClearSelectedList();

            while (iResult.Read())
            {
                Customer p = new Customer(iResult.GetString(0), iResult.GetString(1), iResult.GetString(2), iResult.GetString(3), iResult.GetInt32(4) == 0 ? false : true);
                CustomerActions.AddToSelectedList(p);
            }
        }
 public static void AddToSpecList(Customer iCustomer)
 {
     CustomerSpecList.Add(iCustomer);
 }
 public static void AddToSelectedList(Customer iCustomer)
 {
     CustomerSelectedList.Add(iCustomer);
 }