public void ChangeSettingsView(ApplicationViewManager.Name applicationName)
 {
     if (Enum.GetNames(typeof(SettingsViewManager.Name)).Contains(applicationName.ToString()) && ApplicationViewManager.Name.None.ToString() != applicationName.ToString())
     {
         SelectedSettingsView = SettingsViews.SourceCollection.Cast <SettingsViewInfo>().FirstOrDefault(x => x.Name.ToString() == applicationName.ToString());
     }
     else
     {
         SelectedSettingsView = SettingsViews.SourceCollection.Cast <SettingsViewInfo>().FirstOrDefault(x => x.Name == SettingsViewManager.Name.General);
     }
 }
Exemple #2
0
        public DragablzTabHostWindow(ApplicationViewManager.Name applicationName)
        {
            InitializeComponent();
            DataContext = this;

            _applicationName = applicationName;

            InterTabController.Partition = applicationName.ToString();

            ApplicationTitle = ApplicationViewManager.GetTranslatedNameByName(applicationName);

            SettingsManager.Current.PropertyChanged += SettingsManager_PropertyChanged;
        }
Exemple #3
0
        public void ChangeSettingsView(ApplicationViewManager.Name applicationName)
        {
            // Don't change the view, if the user has filtered the settings...
            if (!string.IsNullOrEmpty(Search))
            {
                return;
            }

            if (Enum.GetNames(typeof(SettingsViewManager.Name)).Contains(applicationName.ToString()) && ApplicationViewManager.Name.None.ToString() != applicationName.ToString())
            {
                SelectedSettingsView = SettingsViews.SourceCollection.Cast <SettingsViewInfo>().FirstOrDefault(x => x.Name.ToString() == applicationName.ToString());
            }
            else
            {
                SelectedSettingsView = SettingsViews.SourceCollection.Cast <SettingsViewInfo>().FirstOrDefault(x => x.Name == SettingsViewManager.Name.General);
            }
        }
Exemple #4
0
        public DragablzTabHostWindow(ApplicationViewManager.Name applicationName)
        {
            InitializeComponent();
            DataContext = this;

            // Transparency
            if (SettingsManager.Current.Appearance_EnableTransparency)
            {
                AllowsTransparency = true;
                Opacity            = SettingsManager.Current.Appearance_Opacity;
            }

            _applicationName = applicationName;

            InterTabClient = new DragablzInterTabClient(applicationName);

            InterTabController.Partition = applicationName.ToString();

            ApplicationTitle = ApplicationViewManager.GetTranslatedNameByName(applicationName);

            SettingsManager.Current.PropertyChanged += SettingsManager_PropertyChanged;
        }