Пример #1
0
        /// <summary>
        /// State representing none lines nor calls.
        /// </summary>
        /// <param name="itsForm">Its view form.</param>
        public NoLineAndNoCall(MainForm itsForm)
            : base(itsForm)
        {
            itsForm.DisableHangUpButton();
            itsForm.DisablePickUpButton();
            itsForm.DisableNumkeys();

            itsForm.DisableDNDButton();
            itsForm.DisableHoldButton();
            itsForm.DisableAutoAnswerButton();

            itsForm.DisableKeepAliveBox();
            itsForm.DisableRedialButton();
            itsForm.EnableAdapterSettings();

            itsForm.DisableVideoControlButton();
            itsForm.DisableTransfer();

            itsForm.ItsDisplay.Text = string.Empty;
            itsForm.tbDialNumber.ReadOnly = true;
            itsForm.AcceptOnRegisterButton();
        }
Пример #2
0
        /// <summary>
        /// State representing none lines and multiple calls.
        /// </summary>
        /// <param name="itsForm">Its form view.</param>
        public NoLineAndCall(MainForm itsForm)
            : base(itsForm)
        {
            itsForm.EnableHangUpButton();
            itsForm.DisableNumkeys();
            itsForm.DisablePickUpButton();

            itsForm.DisableDNDButton();
            itsForm.EnableHoldButton(false);
            itsForm.DisableAutoAnswerButton();

            itsForm.DisableKeepAliveBox();
            itsForm.EnableRedialButton();
            itsForm.DisableAdapterSettings();

            itsForm.DisableTransfer();
            itsForm.ItsDisplay.Text = string.Empty;

            SetActivePhoneCallToFirstOne();
            itsForm.tbDialNumber.ReadOnly = true;
            itsForm.AcceptOnRegisterButton();
        }