Esempio n. 1
0
        // ---------------------- //
        // -- Data Management --- //
        // ---------------------- //

        // Data updates //
        private void refreshRoleCombo()
        {
            try
            {
                RoleCombo.ItemsSource  = StaffFunctions.ListStaffRoles(true);
                RoleCombo.SelectedItem = Globals.AllStaffRoles;
            }
            catch (Exception generalException) { MessageFunctions.Error("Error populating role filter list", generalException); }
        }
        // ---------------------- //
        // -- Data Management --- //
        // ---------------------- //

        // Data updates //
        private void refreshRoleList()
        {
            try
            {
                roleList = StaffFunctions.ListStaffRoles(false);
                RoleCombo.ItemsSource = roleList;
            }
            catch (Exception generalException) { MessageFunctions.Error("Error populating roles list", generalException); }
        }