Beispiel #1
0
 // Invoke the Content Changed event
 public virtual void OnContentChanging(UnifiedSettingsContentType contentType)
 {
     if (ContentChanging != null)
     {
         ContentChanging(contentType);
     }
 }
        private void HandleContentChanging(UnifiedSettingsContentType newContentType)
        {
            switch (newContentType)
            {
            case UnifiedSettingsContentType.MainContent:     // clear previous, set to main
                _currentContent.SaveData();
                _previousContent.Clear();
                _currentContent = _mainPanel;
                UpdateContentInUI();
                break;

            case UnifiedSettingsContentType.GeneralContent: MoveToContentPanel(_generalPanel);
                break;

            case UnifiedSettingsContentType.AudioVideoContent: MoveToContentPanel(_audioVideoPanel);
                break;

            case UnifiedSettingsContentType.ThemeContent: MoveToContentPanel(_themePanel);
                break;

            case UnifiedSettingsContentType.TextContent: MoveToContentPanel(_textPanel);
                break;

            case UnifiedSettingsContentType.SummaryContent: MoveToContentPanel(_summaryPanel);
                break;

            case UnifiedSettingsContentType.AudioSettingsContent: MoveToContentPanel(_audioSettingsPanel);
                break;

            case UnifiedSettingsContentType.VideoSettingsContent: MoveToContentPanel(_videoSettingsPanel);
                break;

            case UnifiedSettingsContentType.CallSettingsContent: MoveToContentPanel(_callSettingsPanel);
                break;

            case UnifiedSettingsContentType.NetworkSettingsContent: MoveToContentPanel(_networkSettingsPanel);
                break;

            case UnifiedSettingsContentType.AdvancedSettingsContent: MoveToContentPanel(_advancedSettingsPanel);
                break;

            case UnifiedSettingsContentType.ViewTSS: MoveToContentPanel(_viewTechnicalSupportPanel);
                break;

            default: break;
            }
        }
 // Invoke the Content Changed event
 public virtual void OnContentChanging(UnifiedSettingsContentType contentType)
 {
     if (ContentChanging != null)
     {
         ContentChanging(contentType);
     }
 }