Beispiel #1
0
        public SIPCallManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner      = owner;
            m_riaContext = riaContext;

            m_sipCallsPanel.SetTitle("Calls");
            m_sipCallsPanel.DisplayCount = SIPCALLS_DISPLAY_COUNT;
            m_sipCallsPanel.MenuEnableAdd(false);
            m_sipCallsPanel.MenuEnableFilter(false);
            m_sipCallsPanel.MenuEnableHelp(false);
            m_sipCallsPanel.GetAssetList = GetSIPCalls;

            m_sipCDRsPanel.SetTitle("CDRs");
            m_sipCDRsPanel.DisplayCount = SIPCDRS_DISPLAY_COUNT;
            m_sipCDRsPanel.MenuEnableAdd(false);
            m_sipCDRsPanel.MenuEnableFilter(false);
            m_sipCDRsPanel.MenuEnableHelp(false);
            m_sipCDRsPanel.GetAssetList = GetSIPCDRs;
        }
Beispiel #2
0
        private void GetCustomerCompleted(LoadOperation <Customer> lo)
        {
            if (lo.HasError)
            {
                LogActivityMessage(MessageLevelsEnum.Warn, "Error loading API key for notifications service. " + lo.Error.Message);
                lo.MarkErrorAsHandled();
            }
            else
            {
                SIPEntitiesDomainContext riaContext = (SIPEntitiesDomainContext)lo.UserState;
                Customer customer = riaContext.Customers.FirstOrDefault();

                if (customer == null)
                {
                    LogActivityMessage(MessageLevelsEnum.Warn, "User record could not be loaded when attempting to retrieve API key for notifications service.");
                }
                else
                {
                    CDR.TimeZoneOffsetMinutes = customer.TimeZoneOffsetMinutes;
                    SIPProviderBinding.TimeZoneOffsetMinutes  = customer.TimeZoneOffsetMinutes;
                    SIPRegistrarBinding.TimeZoneOffsetMinutes = customer.TimeZoneOffsetMinutes;
                    SIPAccount.TimeZoneOffsetMinutes          = customer.TimeZoneOffsetMinutes;
                    m_serviceLevelTextBlock.Text = customer.ServiceLevel;

                    if (!m_notificationsURL.StartsWith("disable"))
                    {
                        m_sipNotifierClient = new SIPSorceryNotificationClient(LogActivityMessage, m_notificationsURL, customer.APIKey);
                        m_sipNotifierClient.StatusChanged        += NotificationsServiceStatusChanged;
                        m_sipNotifierClient.MachineEventReceived += SIPEventMonitorClient_MonitorEventReceived;
                        m_monitorConsole.SetNotifierClient(m_sipNotifierClient);
                        m_sipNotifierClient.Connect();
                    }
                }
            }
        }
        public SIPProviderManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner      = owner;
            m_riaContext = riaContext;

            m_sipProvidersPanel.SetTitle("SIP Providers");
            m_sipProvidersPanel.DisplayCount = SIPPROVIDERS_DISPLAY_COUNT;
            m_sipProvidersPanel.MenuEnableFilter(false);
            m_sipProvidersPanel.MenuEnableHelp(false);
            m_sipProvidersPanel.Add         += SIPProvidersPanel_Add;
            m_sipProvidersPanel.GetAssetList = GetSIPProviders;

            m_sipProviderRegistrationsPanel.SetTitle("SIP Provider Registrations");
            m_sipProviderRegistrationsPanel.DisplayCount = SIPPROVIDERBINDINGS_DISPLAY_COUNT;
            m_sipProviderRegistrationsPanel.MenuEnableAdd(false);
            m_sipProviderRegistrationsPanel.MenuEnableFilter(false);
            m_sipProviderRegistrationsPanel.MenuEnableHelp(false);
            m_sipProviderRegistrationsPanel.GetAssetList = GetSIPProviderBindings;
        }
        public SIPProviderManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner = owner;
            m_riaContext = riaContext;

            m_sipProvidersPanel.SetTitle("SIP Providers");
            m_sipProvidersPanel.DisplayCount = SIPPROVIDERS_DISPLAY_COUNT;
            m_sipProvidersPanel.MenuEnableFilter(false);
            m_sipProvidersPanel.MenuEnableHelp(false);
            m_sipProvidersPanel.Add += SIPProvidersPanel_Add;
            m_sipProvidersPanel.GetAssetList = GetSIPProviders;

            m_sipProviderRegistrationsPanel.SetTitle("SIP Provider Registrations");
            m_sipProviderRegistrationsPanel.DisplayCount = SIPPROVIDERBINDINGS_DISPLAY_COUNT;
            m_sipProviderRegistrationsPanel.MenuEnableAdd(false);
            m_sipProviderRegistrationsPanel.MenuEnableFilter(false);
            m_sipProviderRegistrationsPanel.MenuEnableHelp(false);
            m_sipProviderRegistrationsPanel.GetAssetList = GetSIPProviderBindings;
        }
        public SIPCallManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner = owner;
            m_riaContext = riaContext;

            m_sipCallsPanel.SetTitle("Calls");
            m_sipCallsPanel.DisplayCount = SIPCALLS_DISPLAY_COUNT;
            m_sipCallsPanel.MenuEnableAdd(false);
            m_sipCallsPanel.MenuEnableFilter(false);
            m_sipCallsPanel.MenuEnableHelp(false);
            m_sipCallsPanel.GetAssetList = GetSIPCalls;

            m_sipCDRsPanel.SetTitle("CDRs");
            m_sipCDRsPanel.DisplayCount = SIPCDRS_DISPLAY_COUNT;
            m_sipCDRsPanel.MenuEnableAdd(false);
            m_sipCDRsPanel.MenuEnableFilter(false);
            m_sipCDRsPanel.MenuEnableHelp(false);
            m_sipCDRsPanel.GetAssetList = GetSIPCDRs;
        }
        public SIPAccountManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner      = owner;
            m_riaContext = riaContext;

            m_sipAccountsPanel.SetTitle("SIP Accounts");
            m_sipAccountsPanel.DisplayCount = SIPACCOUNTS_DISPLAY_COUNT;
            m_sipAccountsPanel.MenuEnableFilter(false);
            m_sipAccountsPanel.MenuEnableHelp(false);
            m_sipAccountsPanel.Add         += SIPAccountsAssetViewer_Add;
            m_sipAccountsPanel.GetAssetList = GetSIPAccounts;

            m_sipBindingsPanel.SetTitle("SIP Bindings");
            m_sipBindingsPanel.DisplayCount = SIPBINDINGS_DISPLAY_COUNT;
            m_sipBindingsPanel.MenuEnableAdd(false);
            m_sipBindingsPanel.MenuEnableFilter(false);
            m_sipBindingsPanel.MenuEnableHelp(false);
            m_sipBindingsPanel.GetAssetList = GetSIPBindings;
        }
        public SIPAccountManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_owner = owner;
            m_riaContext = riaContext;

            m_sipAccountsPanel.SetTitle("SIP Accounts");
            m_sipAccountsPanel.DisplayCount = SIPACCOUNTS_DISPLAY_COUNT;
            m_sipAccountsPanel.MenuEnableFilter(false);
            m_sipAccountsPanel.MenuEnableHelp(false);
            m_sipAccountsPanel.Add += SIPAccountsAssetViewer_Add;
            m_sipAccountsPanel.GetAssetList = GetSIPAccounts;

            m_sipBindingsPanel.SetTitle("SIP Bindings");
            m_sipBindingsPanel.DisplayCount = SIPBINDINGS_DISPLAY_COUNT;
            m_sipBindingsPanel.MenuEnableAdd(false);
            m_sipBindingsPanel.MenuEnableFilter(false);
            m_sipBindingsPanel.MenuEnableHelp(false);
            m_sipBindingsPanel.GetAssetList = GetSIPBindings;
        }
Beispiel #8
0
 private void CreateDomainContext()
 {
     if (!m_entitiesServiceURL.IsNullOrBlank())
     {
         m_riaContext = new SIPEntitiesDomainContext(new Uri(m_entitiesServiceURL));
     }
     else
     {
         m_riaContext = new SIPEntitiesDomainContext();
     }
 }
        public SimpleWizardManager(
            ActivityMessageDelegate logActivityMessage,
            SIPDialPlan dialPlan,
            string owner,
            DialPlanUpdateDelegate dialPlanAdd,
            DialPlanUpdateDelegate dialPlanUpdate,
            ControlClosedDelegate closed,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_dialPlan              = dialPlan;
            m_owner                 = owner;
            DialPlanAdd_External    = dialPlanAdd;
            DialPlanUpdate_External = dialPlanUpdate;
            ControlClosed_External  = closed;
            m_riaContext            = riaContext;

            m_riaContext.RejectChanges();

            m_dialPlanName.Text       = m_dialPlan.DialPlanName;
            _dialPlanNameTextBox.Text = m_dialPlan.DialPlanName;

            // Set up the outgoing rules grid.
            m_outgoingRulesUpdateControl.SetStatusMessage(SimpleWizardOutRuleControl.ADD_TEXT, false);
            m_outgoingRulesUpdateControl.SIPProviders = m_riaContext.SIPProviders.ToList();
            m_outgoingRulesUpdateControl.Add         += AddRule;
            m_outgoingRulesUpdateControl.Update      += UpdateRule;
            m_outgoingRulesPanel.SetTitle("Outgoing Call Rules");
            m_outgoingRulesPanel.MenuEnableFilter(false);
            m_outgoingRulesPanel.MenuEnableHelp(false);
            m_outgoingRulesPanel.MenuEnableAdd(false);
            m_outgoingRulesPanel.GetAssetList = GetOutgoingRules;
            //m_outgoingRulesPanel.Add += () => { m_outgoingRulesUpdateControl.SetRuleToUpdate(null); };

            // Set up the incoming rules grid.
            m_incomingRulesUpdateControl.SetStatusMessage(SimpleWizardInRuleControl.ADD_TEXT, false);
            m_incomingRulesUpdateControl.SIPProviders = m_riaContext.SIPProviders.ToList();
            m_incomingRulesUpdateControl.Add         += AddRule;
            m_incomingRulesUpdateControl.Update      += UpdateRule;
            m_incomingRulesUpdateControl.PopulateToSIPAccounts(m_riaContext.SIPAccounts);
            m_incomingRulesPanel.SetTitle("Incoming Call Rules");
            m_incomingRulesPanel.MenuEnableFilter(false);
            m_incomingRulesPanel.MenuEnableHelp(false);
            m_incomingRulesPanel.MenuEnableAdd(false);
            m_incomingRulesPanel.GetAssetList = GetIncomingRules;
            //m_incomingRulesPanel.Add += () => { m_incomingRulesUpdateControl.SetRuleToUpdate(null); };

            m_intialised  = true;
            m_currentGrid = m_outgoingRulesDataGrid;

            m_outgoingRulesPanel.RefreshAsync();
        }
        public SimpleWizardManager(
            ActivityMessageDelegate logActivityMessage,
            SIPDialPlan dialPlan,
            string owner,
            DialPlanUpdateDelegate dialPlanAdd,
            DialPlanUpdateDelegate dialPlanUpdate,
            ControlClosedDelegate closed,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_dialPlan = dialPlan;
            m_owner = owner;
            DialPlanAdd_External = dialPlanAdd;
            DialPlanUpdate_External = dialPlanUpdate;
            ControlClosed_External = closed;
            m_riaContext = riaContext;

            m_riaContext.RejectChanges();

            m_dialPlanName.Text = m_dialPlan.DialPlanName;
            _dialPlanNameTextBox.Text = m_dialPlan.DialPlanName;

            // Set up the outgoing rules grid.
            m_outgoingRulesUpdateControl.SetStatusMessage(SimpleWizardOutRuleControl.ADD_TEXT, false);
            m_outgoingRulesUpdateControl.SIPProviders = m_riaContext.SIPProviders.ToList();
            m_outgoingRulesUpdateControl.Add += AddRule;
            m_outgoingRulesUpdateControl.Update += UpdateRule;
            m_outgoingRulesPanel.SetTitle("Outgoing Call Rules");
            m_outgoingRulesPanel.MenuEnableFilter(false);
            m_outgoingRulesPanel.MenuEnableHelp(false);
            m_outgoingRulesPanel.MenuEnableAdd(false);
            m_outgoingRulesPanel.GetAssetList = GetOutgoingRules;
            //m_outgoingRulesPanel.Add += () => { m_outgoingRulesUpdateControl.SetRuleToUpdate(null); };

            // Set up the incoming rules grid.
            m_incomingRulesUpdateControl.SetStatusMessage(SimpleWizardInRuleControl.ADD_TEXT, false);
            m_incomingRulesUpdateControl.SIPProviders = m_riaContext.SIPProviders.ToList();
            m_incomingRulesUpdateControl.Add += AddRule;
            m_incomingRulesUpdateControl.Update += UpdateRule;
            m_incomingRulesUpdateControl.PopulateToSIPAccounts(m_riaContext.SIPAccounts);
            m_incomingRulesPanel.SetTitle("Incoming Call Rules");
            m_incomingRulesPanel.MenuEnableFilter(false);
            m_incomingRulesPanel.MenuEnableHelp(false);
            m_incomingRulesPanel.MenuEnableAdd(false);
            m_incomingRulesPanel.GetAssetList = GetIncomingRules;
            //m_incomingRulesPanel.Add += () => { m_incomingRulesUpdateControl.SetRuleToUpdate(null); };

            m_intialised = true;
            m_currentGrid = m_outgoingRulesDataGrid;

            m_outgoingRulesPanel.RefreshAsync();
        }
Beispiel #11
0
        public UserPage(
            LogoutDelegate logoutDelegate,
            string owner,
            string notificationsURL,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            App.AppUnhandledException += new AppUnhandledExceptionDelegate(AppUnhandledException);

            Logout_External    = logoutDelegate;
            m_owner            = owner;
            m_notificationsURL = notificationsURL;

            this.TabNavigation = KeyboardNavigationMode.Cycle;

            Initialise(riaContext);

            // Get the customer record so the API key can be used to connect to the notifications service.
            riaContext.Load(riaContext.GetCustomerQuery(), LoadBehavior.RefreshCurrent, GetCustomerCompleted, riaContext);

            m_dialPlanManager            = new DialPlanManager(LogActivityMessage, m_owner, riaContext);
            m_dialPlanManager.Visibility = Visibility.Collapsed;
            m_mainCanvas.Children.Add(m_dialPlanManager);

            m_sipAccountManager            = new SIPAccountManager(LogActivityMessage, m_owner, riaContext);
            m_sipAccountManager.Visibility = Visibility.Collapsed;
            m_mainCanvas.Children.Add(m_sipAccountManager);

            m_sipProviderManager            = new SIPProviderManager(LogActivityMessage, m_owner, riaContext);
            m_sipProviderManager.Visibility = Visibility.Collapsed;
            m_mainCanvas.Children.Add(m_sipProviderManager);

            m_sipCallsManager            = new SIPCallManager(LogActivityMessage, m_owner, riaContext);
            m_sipCallsManager.Visibility = Visibility.Collapsed;
            m_mainCanvas.Children.Add(m_sipCallsManager);

            m_monitorConsole            = new MonitoringConsole(LogActivityMessage);
            m_monitorConsole.Visibility = Visibility.Collapsed;
            m_mainCanvas.Children.Add(m_monitorConsole);

            m_customerSettings            = new CustomerSettingsControl(LogActivityMessage, Logout_External, m_owner, riaContext);
            m_customerSettings.Visibility = Visibility.Collapsed;
            m_mainCanvas.Children.Add(m_customerSettings);

            SetActive(m_sipAccountManager);
            SetSelectedTextBlock(m_sipAccountsLink);
        }
        public DialPlanManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_riaContext = riaContext;
            m_owner      = owner;

            m_dialPlansPanel.SetTitle("Dial Plans");
            m_dialPlansPanel.MenuEnableFilter(false);
            m_dialPlansPanel.MenuEnableHelp(false);
            m_dialPlansPanel.Add         += DialPlansPanel_Add;
            m_dialPlansPanel.GetAssetList = GetDialPlans;
        }
        public CustomerSettingsControl(
            ActivityMessageDelegate logActivityMessage,
            LogoutDelegate logout,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            Logout_External = logout;
            m_owner = owner;
            m_riaContext = riaContext;
            UIHelper.SetText(m_accountDetailsTextBlock, "Account Details: " + m_owner);
            //m_persistor.GetCustomerComplete += GetCustomerComplete;
            //m_persistor.UpdateCustomerPasswordComplete += UpdateCustomerPasswordComplete;
            //m_persistor.UpdateCustomerComplete += UpdateCustomerComplete;
        }
        public CustomerSettingsControl(
            ActivityMessageDelegate logActivityMessage,
            LogoutDelegate logout,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            Logout_External             = logout;
            m_owner      = owner;
            m_riaContext = riaContext;
            UIHelper.SetText(m_accountDetailsTextBlock, "Account Details: " + m_owner);
            //m_persistor.GetCustomerComplete += GetCustomerComplete;
            //m_persistor.UpdateCustomerPasswordComplete += UpdateCustomerPasswordComplete;
            //m_persistor.UpdateCustomerComplete += UpdateCustomerComplete;
        }
        public DialPlanManager(
            ActivityMessageDelegate logActivityMessage,
            string owner,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_riaContext = riaContext;
            m_owner = owner;

            m_dialPlansPanel.SetTitle("Dial Plans");
            m_dialPlansPanel.MenuEnableFilter(false);
            m_dialPlansPanel.MenuEnableHelp(false);
            m_dialPlansPanel.Add += DialPlansPanel_Add;
            m_dialPlansPanel.GetAssetList = GetDialPlans;
        }
        public SIPAccountDetailsControl(
            DetailsControlModesEnum mode,
            SIPAccount sipAccount,
            string owner,
            SIPAccountUpdateDelegate add,
            SIPAccountUpdateDelegate update,
            ControlClosedDelegate closed,
            SIPEntitiesDomainContext riaContext
            //GetDialPlanNamesDelegate getDialPlanNames,
            //GetSIPDomainsDelegate getSIPDomains
            )
        {
            InitializeComponent();

            m_detailsMode = mode;
            m_owner = owner;
            m_sipAccount = sipAccount;
            AddSIPAccount_External = add;
            UpdateSIPAccount_External = update;
            Closed_External = closed;
            m_riaContext = riaContext;
            //GetDialPlanNames_External = getDialPlanNames;
            //GetSIPDomains_External = getSIPDomains;

            if (m_detailsMode == DetailsControlModesEnum.Edit)
            {
                PopulateDataFields(m_sipAccount);
            }
            else
            {
                m_sipAccountUpdateButton.Content = "Add";
                m_sipAccountIdCanvas.Visibility = Visibility.Collapsed;
                m_statusDisabledRadio.Visibility = Visibility.Collapsed;
                m_statusAdminDisabledRadio.Visibility = Visibility.Collapsed;
                UIHelper.SetText(m_sipAccountOwner, m_owner);
                SetDomainNames(null);
                SetDialPlanNames(null);
            }
        }
Beispiel #17
0
        public SIPAccountDetailsControl(
            DetailsControlModesEnum mode,
            SIPAccount sipAccount,
            string owner,
            SIPAccountUpdateDelegate add,
            SIPAccountUpdateDelegate update,
            ControlClosedDelegate closed,
            SIPEntitiesDomainContext riaContext
            //GetDialPlanNamesDelegate getDialPlanNames,
            //GetSIPDomainsDelegate getSIPDomains
            )
        {
            InitializeComponent();

            m_detailsMode             = mode;
            m_owner                   = owner;
            m_sipAccount              = sipAccount;
            AddSIPAccount_External    = add;
            UpdateSIPAccount_External = update;
            Closed_External           = closed;
            m_riaContext              = riaContext;
            //GetDialPlanNames_External = getDialPlanNames;
            //GetSIPDomains_External = getSIPDomains;

            if (m_detailsMode == DetailsControlModesEnum.Edit)
            {
                PopulateDataFields(m_sipAccount);
            }
            else
            {
                m_sipAccountUpdateButton.Content      = "Add";
                m_sipAccountIdCanvas.Visibility       = Visibility.Collapsed;
                m_statusDisabledRadio.Visibility      = Visibility.Collapsed;
                m_statusAdminDisabledRadio.Visibility = Visibility.Collapsed;
                UIHelper.SetText(m_sipAccountOwner, m_owner);
                SetDomainNames(null);
                SetDialPlanNames(null);
            }
        }
Beispiel #18
0
        private void Initialise(SIPEntitiesDomainContext riaContext)
        {
            if (riaContext.SIPDomains.Count() == 0)
            {
                var query = riaContext.GetSIPDomainsQuery().OrderBy(x => x.Domain).Skip(0).Take(MAX_RIA_LIST_SIZE);
                query.IncludeTotalCount = true;
                riaContext.Load(query, LoadBehavior.RefreshCurrent, (lo) => { LogActivityMessage(MessageLevelsEnum.Info, lo.TotalEntityCount + " domains successfully loaded."); }, null);
            }

            if (riaContext.SIPDialPlans.Count() == 0)
            {
                var query = riaContext.GetSIPDialplansQuery().OrderBy(x => x.DialPlanName).Skip(0).Take(MAX_RIA_LIST_SIZE);
                query.IncludeTotalCount = true;
                riaContext.Load(query, LoadBehavior.RefreshCurrent, (lo) => { LogActivityMessage(MessageLevelsEnum.Info, lo.TotalEntityCount + " dialplans successfully loaded."); }, null);
            }

            if (riaContext.SIPProviders.Count() == 0)
            {
                var query = riaContext.GetSIPProvidersQuery().OrderBy(x => x.ProviderName).Skip(0).Take(MAX_RIA_LIST_SIZE);
                query.IncludeTotalCount = true;
                riaContext.Load(query, LoadBehavior.RefreshCurrent, (lo) => { LogActivityMessage(MessageLevelsEnum.Info, lo.TotalEntityCount + " providers successfully loaded."); }, null);
            }
        }
        public DialPlanWizard(
            ActivityMessageDelegate logActivityMessage,
            SIPDialPlan dialPlan,
            string owner,
            DialPlanUpdateDelegate dialPlanAdd,
            DialPlanUpdateDelegate dialPlanUpdate,
            ControlClosedDelegate closed,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_dialPlan = dialPlan;
            m_owner = owner;
            DialPlanAdd_External = dialPlanAdd;
            DialPlanUpdate_External = dialPlanUpdate;
            ControlClosed_External = closed;
            m_riaContext = riaContext;

            m_riaContext.RejectChanges();

            m_speedDialsPanel.SetTitle("Speed Dials");
            m_speedDialsPanel.MenuEnableFilter(false);
            m_speedDialsPanel.MenuEnableHelp(true);
            m_speedDialsPanel.MenuEnableAdd(false);
            m_speedDialsPanel.GetAssetList = GetSpeedDials;
            m_speedDialsPanel.Help += () => { ToggleSpeedDialsHelp(true); };
            ToggleSpeedDialsHelp(false);

            m_enumsPanel.SetTitle("ENUMs");
            m_enumsPanel.MenuEnableFilter(false);
            m_enumsPanel.MenuEnableHelp(true);
            m_enumsPanel.MenuEnableAdd(false);
            m_enumsPanel.GetAssetList = GetENUMs;
            m_enumsPanel.Help += () => { ToggleENUMHelp(true); };
            ToggleENUMHelp(false);

            m_cnamPanel.SetTitle("CNAMs");
            m_cnamPanel.MenuEnableFilter(false);
            m_cnamPanel.MenuEnableHelp(true);
            m_cnamPanel.MenuEnableAdd(false);
            m_cnamPanel.GetAssetList = GetCNAMs;
            m_cnamPanel.Help += () => { ToggleCNAMHelp(true); };
            ToggleCNAMHelp(false);

            m_providersPanel.SetTitle("Dial Plan Providers");
            m_providersPanel.MenuEnableFilter(false);
            m_providersPanel.MenuEnableHelp(true);
            m_providersPanel.MenuEnableAdd(false);
            m_providersPanel.GetAssetList = GetDialPlanProviders;
            m_providersPanel.Help += () => { ToggleDialPlanProvidersHelp(true); };
            ToggleDialPlanProvidersHelp(false);

            m_routesPanel.SetTitle("Routes");
            m_routesPanel.MenuEnableFilter(false);
            m_routesPanel.MenuEnableHelp(true);
            m_routesPanel.MenuEnableAdd(false);
            m_routesPanel.GetAssetList = GetRoutes;
            m_routesPanel.Help += () => { ToggleRoutesHelp(true); };
            ToggleRoutesHelp(false);

            m_intialised = true;

            m_speedDialsPanel.RefreshAsync();
        }
Beispiel #20
0
        public DialPlanWizard(
            ActivityMessageDelegate logActivityMessage,
            SIPDialPlan dialPlan,
            string owner,
            DialPlanUpdateDelegate dialPlanAdd,
            DialPlanUpdateDelegate dialPlanUpdate,
            ControlClosedDelegate closed,
            SIPEntitiesDomainContext riaContext)
        {
            InitializeComponent();

            LogActivityMessage_External = logActivityMessage;
            m_dialPlan              = dialPlan;
            m_owner                 = owner;
            DialPlanAdd_External    = dialPlanAdd;
            DialPlanUpdate_External = dialPlanUpdate;
            ControlClosed_External  = closed;
            m_riaContext            = riaContext;

            m_riaContext.RejectChanges();

            m_speedDialsPanel.SetTitle("Speed Dials");
            m_speedDialsPanel.MenuEnableFilter(false);
            m_speedDialsPanel.MenuEnableHelp(true);
            m_speedDialsPanel.MenuEnableAdd(false);
            m_speedDialsPanel.GetAssetList = GetSpeedDials;
            m_speedDialsPanel.Help        += () => { ToggleSpeedDialsHelp(true); };
            ToggleSpeedDialsHelp(false);

            m_enumsPanel.SetTitle("ENUMs");
            m_enumsPanel.MenuEnableFilter(false);
            m_enumsPanel.MenuEnableHelp(true);
            m_enumsPanel.MenuEnableAdd(false);
            m_enumsPanel.GetAssetList = GetENUMs;
            m_enumsPanel.Help        += () => { ToggleENUMHelp(true); };
            ToggleENUMHelp(false);

            m_cnamPanel.SetTitle("CNAMs");
            m_cnamPanel.MenuEnableFilter(false);
            m_cnamPanel.MenuEnableHelp(true);
            m_cnamPanel.MenuEnableAdd(false);
            m_cnamPanel.GetAssetList = GetCNAMs;
            m_cnamPanel.Help        += () => { ToggleCNAMHelp(true); };
            ToggleCNAMHelp(false);

            m_providersPanel.SetTitle("Dial Plan Providers");
            m_providersPanel.MenuEnableFilter(false);
            m_providersPanel.MenuEnableHelp(true);
            m_providersPanel.MenuEnableAdd(false);
            m_providersPanel.GetAssetList = GetDialPlanProviders;
            m_providersPanel.Help        += () => { ToggleDialPlanProvidersHelp(true); };
            ToggleDialPlanProvidersHelp(false);

            m_routesPanel.SetTitle("Routes");
            m_routesPanel.MenuEnableFilter(false);
            m_routesPanel.MenuEnableHelp(true);
            m_routesPanel.MenuEnableAdd(false);
            m_routesPanel.GetAssetList = GetRoutes;
            m_routesPanel.Help        += () => { ToggleRoutesHelp(true); };
            ToggleRoutesHelp(false);

            m_intialised = true;

            m_speedDialsPanel.RefreshAsync();
        }
 public void SetRIAContext(SIPEntitiesDomainContext riaContext)
 {
     m_riaContext = riaContext;
 }
Beispiel #22
0
 private void CreateDomainContext()
 {
     if (!m_entitiesServiceURL.IsNullOrBlank())
     {
         m_riaContext = new SIPEntitiesDomainContext(new Uri(m_entitiesServiceURL));
     }
     else
     {
         m_riaContext = new SIPEntitiesDomainContext();
     }
 }
 public void SetProxy(SIPEntitiesDomainContext riaContext)
 {
     m_riaContext = riaContext;
 }
 public void SetRIAContext(SIPEntitiesDomainContext riaContext)
 {
     m_riaContext = riaContext;
 }
Beispiel #25
0
 public void SetProxy(SIPEntitiesDomainContext riaContext)
 {
     m_riaContext = riaContext;
 }