private void Telephone_Load(object sender, EventArgs e)
        {
            // Application Services
            // Initialized view states and view manager
            this.viewStateConfiguration = new TelephoneViewStateConfiguration();
            this.viewMan = ViewManager.Instance;
            this.viewMan.LoadViewStateConfiguration(this.viewStateConfiguration, this);

            // Load devices controlled by state machine into device manager
            this.devManConfiguation = new TelephoneDeviceConfiguration();
            this.devMan = DeviceManager.Instance;
            this.devMan.LoadDeviceConfiguration(this.devManConfiguation);

            // State Machine
            // Initialize state machine and start state machine
            this.telephoneStateMachine = new TelephoneStateMachine.TelephoneStateMachine(new TelephoneStateMachineConfiguration());
            this.telephoneStateMachine.InitStateMachine();
            this.telephoneStateMachine.Start();
        }
Esempio n. 2
0
        private void Telephone_Load(object sender, EventArgs e)
        {
            // Application Services
            // Initialized view states and view manager
            this.viewStateConfiguration = new TelephoneViewStateConfiguration();
            this.viewMan = ViewManager.Instance;
            this.viewMan.LoadViewStateConfiguration(this.viewStateConfiguration, this);

            // Load devices controlled by state machine into device manager
            this.devManConfiguation = new TelephoneDeviceConfiguration();
            this.devMan             = DeviceManager.Instance;
            this.devMan.LoadDeviceConfiguration(this.devManConfiguation);

            // State Machine
            // Initialize state machine and start state machine
            this.telephoneStateMachine = new TelephoneStateMachine.TelephoneStateMachine(new TelephoneStateMachineConfiguration());
            this.telephoneStateMachine.InitStateMachine();
            this.telephoneStateMachine.Start();
        }