Esempio n. 1
0
 public static void setID(List <int> n)
 {
     eventid.Clear();
     eventid.AddItem("Select Event ID");
     eventid.selectedIndex = 0;
     foreach (int y in n)
     {
         eventid.AddItem(y.ToString());
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes DropdownList with the item quantities in stock
 /// </summary>
 /// <param name="dropdown">DropdownList Object</param>
 /// <param name="item">Item List</param>
 public static void InitializeDropdownList(Bunifu.Framework.UI.BunifuDropdown dropdown, Stock stock)
 {
     dropdown.Clear();
     if (stock != null)
     {
         for (int i = 0; i <= stock.Quantity; i++)
         {
             dropdown.AddItem(i.ToString());
         }
     }
 }
Esempio n. 3
0
 public static void Init(List <int> x)
 {
     // This shit is reset :D
     eventid.Clear();
     eventid.AddItem("Select Event ID");
     eventid.selectedIndex = 0;
     foreach (int y in x)
     {
         eventid.AddItem(y.ToString());
     }
 }
Esempio n. 4
0
        /// <summary>
        /// Initializes DropdownList with the role name values
        /// </summary>
        /// <param name="dropdown">DropdownList Object</param>
        /// <param name="roles">Role List</param>
        public static void InitializeDropdownList(Bunifu.Framework.UI.BunifuDropdown dropdown, IList <Role> roles)
        {
            dropdown.Clear();
            if (roles != null)
            {
                foreach (var role in roles)
                {
                    dropdown.AddItem(role.Name);
                }

                dropdown.selectedIndex = 0;
            }
        }
Esempio n. 5
0
        /// <summary>
        /// Initializes DropdownList with the deparment name values
        /// </summary>
        /// <param name="dropdown">DropdownList Object</param>
        /// <param name="departments">Department List</param>
        public static void InitializeDropdownList(Bunifu.Framework.UI.BunifuDropdown dropdown,
                                                  IList <Department> departments)
        {
            dropdown.Clear();
            if (departments != null)
            {
                foreach (var department in departments)
                {
                    dropdown.AddItem(department.Name);
                }

                dropdown.selectedIndex = 0;
            }
        }