Example #1
0
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            SetupProfileWindow setupProfileWindow = new SetupProfileWindow();

            setupProfileWindow.SetupLayoutForAddingProfile();
            setupProfileWindow.ShowDialog();
            // Refresh Profile Selector
            cbxProfileSelector.ItemsSource   = null;
            cbxProfileSelector.SelectedIndex = Session.SelectedProfileIndex;
            cbxProfileSelector.ItemsSource   = Preferences.Profiles;
            if (Preferences.Profiles.Count != 0)
            {
                btnSettings.IsEnabled = true;
                btnSync.IsEnabled     = true;
                cbxSync.IsEnabled     = true;
            }
        }