Esempio n. 1
0
        /// <summary>
        /// Event handler that gets called when the check all iFolders checkbox is selected.
        /// </summary>
        /// <param name="source"></param>
        /// <param name="e"></param>
        protected void OnAlliFoldersChecked(object source, EventArgs e)
        {
            CheckBox checkBox = source as CheckBox;

            foreach (DataGridItem item in iFolderList.Items)
            {
                // In order to be checked, the row must not be empty.
                string ifolderID = item.Cells[0].Text;
                if (ifolderID != "&nbsp;")
                {
                    if (checkBox.Checked)
                    {
                        CheckediFolders[ifolderID] = item.Cells[iFolderDisabledColumn].Text;
                    }
                    else
                    {
                        // Remove this ifolder the list.
                        CheckediFolders.Remove(ifolderID);
                    }
                }
            }

            // Set the action buttons appropriately.
            SetActionButtons();

            // Rebind the data source with the new data.
            GetiFolders();
        }
Esempio n. 2
0
        /// <summary>
        /// Event handler that gets called when the check all iFolders checkbox is selected.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnAlliFoldersChecked(object sender, EventArgs e)
        {
            CheckBox checkBox = sender as CheckBox;

            foreach (DataGridItem item in iFolderList.Items)
            {
                string ifolderID = item.Cells[iFolderIDColumn].Text;
                if (ifolderID != "&nbsp;")
                {
                    if (checkBox.Checked)
                    {
                        CheckediFolders[ifolderID] = item.Cells[iFolderDisabledColumn].Text;
                    }
                    else
                    {
                        // Remove this iFolder from the list.
                        CheckediFolders.Remove(ifolderID);
                    }
                }
            }

            // Set the ifolder action buttons.
            SetActionButtons();

            // Rebind the data source with the new data.
            GetiFolders(checkBox.Checked);
        }
Esempio n. 3
0
        /// <summary>
        /// Event handler that gets called when an ifolder is checked.
        /// </summary>
        /// <param name="source"></param>
        /// <param name="e"></param>
        protected void OniFolderChecked(object source, EventArgs e)
        {
            // Get the data grid row for this member.
            CheckBox     checkBox  = source as CheckBox;
            DataGridItem item      = checkBox.Parent.Parent as DataGridItem;
            string       ifolderID = item.Cells[iFolderIDColumn].Text;

            if (ifolderID != "&nbsp;")
            {
                // iFolder is being added.
                if (checkBox.Checked)
                {
                    CheckediFolders[ifolderID] = item.Cells[iFolderDisabledColumn].Text;
                }
                else
                {
                    // Remove this ifolder from the list.
                    CheckediFolders.Remove(ifolderID);
                }
            }

            // Set the ifolder action buttons.
            SetActionButtons();
        }