예제 #1
0
        /// <summary>
        /// State representing multiple lines and multiple calls.
        /// </summary>
        /// <param name="itsForm">Its form view.</param>
        public LineAndCall(MainForm itsForm)
            : base(itsForm)
        {
            itsForm.EnableHangUpButton();
            itsForm.EnableNumkeys();
            itsForm.EnablePickUpButton();

            itsForm.EnableDNDButton();
            itsForm.EnableHoldButton(false);
            itsForm.EnableKeepAliveBox();

            itsForm.EnableAudioFileButtons();
            itsForm.EnableAutoAnswerButton();
            itsForm.DisableRedialButton();

            itsForm.DisableAdapterSettings();
            SetActiveLineAndCallToFirstOnes();
            itsForm.tbDialNumber.ReadOnly = false;

            itsForm.AcceptOnPickUpButton();
            itsForm.EnableVideoControlButton();
            itsForm.EnableTransfer();
        }
예제 #2
0
        /// <summary>
        /// State representing multiple lines and none calls.
        /// </summary>
        /// <param name="itsForm">Its form view.</param>
        public LineAndNoCall(MainForm itsForm)
            : base(itsForm)
        {
            itsForm.EnableHangUpButton();
            itsForm.EnableNumkeys();
            itsForm.EnablePickUpButton();

            itsForm.EnableDNDButton();
            itsForm.DisableHoldButton();
            itsForm.EnableKeepAliveBox();

            itsForm.EnableAutoAnswerButton();
            itsForm.DisableAudioFileButtons();
            itsForm.EnableRedialButton();

            itsForm.DisableAdapterSettings();
            itsForm.VideoButtonsToNormalState();
            SetActivePhoneLineToFirstOne();

            itsForm.DisableTransfer();
            itsForm.tbDialNumber.ReadOnly = false;
            itsForm.AcceptOnPickUpButton();
        }