private void RadioButton_Action_CheckedChanged(object sender, EventArgs e)
        {
            RadioButton selected            = (RadioButton)sender;
            SafeComUCPullPrintAction action = (SafeComUCPullPrintAction)selected.Tag;

            if (checkBox_SelectAll.Checked)
            {
                switch (action)
                {
                case SafeComUCPullPrintAction.Delete:
                    action = SafeComUCPullPrintAction.DeleteAll;
                    break;

                case SafeComUCPullPrintAction.PrintAll:
                    // Don't allow Select All for PrintAll action
                    checkBox_SelectAll.Checked = false;
                    break;

                case SafeComUCPullPrintAction.PrintRetain:
                case SafeComUCPullPrintAction.PrintRetainAll:
                    action = SafeComUCPullPrintAction.PrintRetain;
                    break;

                case SafeComUCPullPrintAction.PrintUnretain:
                case SafeComUCPullPrintAction.PrintUnretainAll:
                    action = SafeComUCPullPrintAction.PrintUnretain;
                    break;

                case SafeComUCPullPrintAction.PrintAllApp:
                    action = SafeComUCPullPrintAction.PrintAllApp;
                    checkBox_SelectAll.Checked = false;
                    break;
                }
            }

            checkBox_SelectAll.Enabled   = ((action != SafeComUCPullPrintAction.PrintAll) && (action != SafeComUCPullPrintAction.PrintAllApp));
            numericUpDown_Copies.Enabled = (action != SafeComUCPullPrintAction.PrintAllApp);

            _activityData.DocumentProcessAction = action;
            _activityData.SelectAll             = checkBox_SelectAll.Checked;

            OnConfigurationChanged(this, e);
        }
Пример #2
0
 /// <summary>
 /// Returns true when finished processing the current work, or timeout was reached.
 /// </summary>
 /// <param name="action">The pull print action</param>
 /// <returns>bool</returns>
 public abstract bool FinishedProcessingWork(SafeComUCPullPrintAction action);
Пример #3
0
 /// <summary>
 /// Checks to see if the processing of work has started, or timeout was reached.
 /// </summary>
 /// <param name="action">The pull print action</param>
 /// <param name="waitTime">Time to continue checking</param>
 /// <returns>bool</returns>
 public abstract bool StartedProcessingWork(SafeComUCPullPrintAction action, TimeSpan waitTime);
Пример #4
0
 /// <summary>
 /// Returns true when finished processing the current work, or timeout was reached.
 /// </summary>
 /// <param name="action">The pull print action</param>
 /// <returns>bool</returns>
 public override bool FinishedProcessingWork(SafeComUCPullPrintAction action)
 {
     return(_masthead.WaitForActiveJobsButtonState(false, DeviceInactivityTimeout));
 }
Пример #5
0
 /// <summary>
 /// Checks to see if the processing of work has started, or timeout was reached.
 /// </summary>
 /// <param name="action">The pull print action</param>
 /// <param name="waitTime">Time to continue checking</param>
 /// <returns>bool</returns>
 public override bool StartedProcessingWork(SafeComUCPullPrintAction action, TimeSpan waitTime)
 {
     return(_masthead.WaitForActiveJobsButtonState(true, waitTime));
 }