public ShowCapability()
        {
            this.InitializeComponent();

            // Get the MB API instance
            mbApiInstance = MBApiImplementation.GetInstance();

            // Initialize MBN managers
            mbApiInstance.InitializeManagers();
        }
Example #2
0
        public TestPhoneBook()
        {
            this.InitializeComponent();

            mbApiInstance = MBApiImplementation.GetInstance();
            mbApiInstance.EnableScenarioButtons  += new MBApiImplementation.EnableScenarioButtonsHandler(OnEnableScenarioButtons);
            mbApiInstance.DisableScenarioButtons += new MBApiImplementation.DisableScenarioButtonsHandler(OnDisableScenarioButtons);
            mbApiInstance.InitializeManagers();

            App.Current.Suspending += new SuspendingEventHandler(AppSuspending);
            App.Current.Resuming   += new System.EventHandler <object>(AppResuming);
        }
        public TestConnection()
        {
            this.InitializeComponent();

            // Get the MB API instance
            mbApiInstance = MBApiImplementation.GetInstance();
            mbApiInstance.EnableScenarioButtons  += new MBApiImplementation.EnableScenarioButtonsHandler(OnEnableScenarioButtons);
            mbApiInstance.DisableScenarioButtons += new MBApiImplementation.DisableScenarioButtonsHandler(OnDisableScenarioButtons);

            // Initialize MBN managers
            mbApiInstance.InitializeManagers();

            // Register for app suspend and resume handlers
            App.Current.Suspending += new SuspendingEventHandler(AppSuspending);
            App.Current.Resuming   += new System.EventHandler <object>(AppResuming);
        }