示例#1
0
        /// <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);
            }
        }
示例#2
0
 public static void AddToSpecList(Customer iCustomer)
 {
     CustomerSpecList.Add(iCustomer);
 }
示例#3
0
 public static void AddToSelectedList(Customer iCustomer)
 {
     CustomerSelectedList.Add(iCustomer);
 }