Example #1
0
 public MultiLineStateArgs(MultiLineStateFlags multilinestate)
 {
     MultiLineState = multilinestate;
 }
Example #2
0
        public Form1()
        {
            InitializeComponent();

            MultiLineStateFlags initial_activeHeldFlags = new MultiLineStateFlags();
            initial_activeHeldFlags.PCActive = false;
            initial_activeHeldFlags.MobileActive = false;
            initial_activeHeldFlags.DeskphoneActive = false;
            initial_activeHeldFlags.PCHeld = false;
            initial_activeHeldFlags.MobileHeld = false;
            initial_activeHeldFlags.DeskphoneHeld = false;
            m_lastMultiLineState = new MultiLineStateArgs(initial_activeHeldFlags);

            // Extra GUI init...
            ExtraGUIInit();

            m_dummyspeechaudio = new SpeechSynthesizer();
            m_dummyspeechaudio.SetOutputToDefaultAudioDevice();

            wearingpicboxtimer = new Timer();
            wearingpicboxtimer.Interval = 500;
            wearingpicboxtimer.Tick += wearingpicboxtimer_Tick;

            m_animtimers = new List<AnimTimerInfo>();
            m_animtimer = new Timer();
            m_animtimer.Interval = 40;
            m_animtimer.Tick += m_animtimer_Tick;
            m_animtimer.Start();
        }