public void SetCallControl(CallViewCtrl callControl) { _callControl = callControl; _textPanel.CallControl = _callControl; _audioSettingsPanel.CallControl = _callControl; _audioVideoPanel.CallControl = _callControl; }
private void SetCallControl(CallViewCtrl callControl) { _callControl = callControl; TextSettings.CallControl = _callControl; // AudioSettings.CallControl = _callControl; GeneralSettings.CallControl = _callControl; }
public SettingsWindow(CallViewCtrl callControl, UnifiedSettings_AccountChange accountChangeRequestedMethod) { //************************************************************************************************************************************ // Initilize of setting screen More==>Settings. Called only once when application runs first time. //************************************************************************************************************************************ InitializeComponent(); AccountChangeRequested += accountChangeRequestedMethod; _allPanels = new List <BaseUnifiedSettingsPanel>(); BaseUnifiedSettingsPanel.EnableAdvancedSettings = false; BaseUnifiedSettingsPanel.EnabledDebugSettings = false; BaseUnifiedSettingsPanel.EnableSuperSettings = false; AccountSettings.ShowSettingsUpdate += HandleShowSettingsUpdate; AccountSettings.updateVideomail += OnUpdateVideomail; AccountSettings.ShiftFocus += focusCloseButton; InitializePanelAndEvents(AccountSettings); InitializePanelAndEvents(GeneralSettings); InitializePanelAndEvents(AudioVideoSettings); InitializePanelAndEvents(ThemeSettings); InitializePanelAndEvents(TextSettings); SummarySettings.ShowSettingsUpdate += HandleShowSettingsUpdate; InitializePanelAndEvents(SummarySettings); // InitializePanelAndEvents(AudioSettings); // InitializePanelAndEvents(VideoSettings); // InitializePanelAndEvents(CallSettings); // InitializePanelAndEvents(NetworkSettings); InitializePanelAndEvents(AdvancedSettings); // InitializePanelAndEvents(_viewTechnicalSupportPanel); _currentContent = GeneralSettings; #if DEBUG HandleShowSettingsUpdate(UnifiedSettings_LevelToShow.Normal, true); #else HandleShowSettingsUpdate(UnifiedSettings_LevelToShow.Normal, true); #endif SetCallControl(callControl); this.Loaded += SettingsWindow_Loaded; AudioVideoSettings.UpdateAdvancedMenuHandler += UpdateAdvancedMenuBitrate; }
public SettingsWindow(CallViewCtrl callControl, UnifiedSettings_AccountChange accountChangeRequestedMethod) { InitializeComponent(); AccountChangeRequested += accountChangeRequestedMethod; _allPanels = new List<BaseUnifiedSettingsPanel>(); BaseUnifiedSettingsPanel.EnableAdvancedSettings = false; BaseUnifiedSettingsPanel.EnabledDebugSettings = false; BaseUnifiedSettingsPanel.EnableSuperSettings = false; AccountSettings.ShowSettingsUpdate += HandleShowSettingsUpdate; InitializePanelAndEvents(AccountSettings); InitializePanelAndEvents(GeneralSettings); InitializePanelAndEvents(AudioVideoSettings); InitializePanelAndEvents(ThemeSettings); InitializePanelAndEvents(TextSettings); SummarySettings.ShowSettingsUpdate += HandleShowSettingsUpdate; InitializePanelAndEvents(SummarySettings); // InitializePanelAndEvents(AudioSettings); // InitializePanelAndEvents(VideoSettings); // InitializePanelAndEvents(CallSettings); // InitializePanelAndEvents(NetworkSettings); InitializePanelAndEvents(AdvancedSettings); // InitializePanelAndEvents(_viewTechnicalSupportPanel); _currentContent = GeneralSettings; #if DEBUG HandleShowSettingsUpdate(UnifiedSettings_LevelToShow.Normal, true); #else HandleShowSettingsUpdate(UnifiedSettings_LevelToShow.Normal, true); #endif SetCallControl(callControl); this.Loaded += SettingsWindow_Loaded; }