/// <summary> /// Initializes a new instance of the SelectShelvesetTeamExplorerView class /// </summary> /// <param name="parentSection">Reference to the Team Explorer section where the view is initialized.</param> public SelectShelvesetTeamExplorerView(SelectShelvesetSection parentSection) { this.InitializeComponent(); this.ParentSection = parentSection; this.ListShelvesets.ItemsSource = this.ParentSection.Shelvesets; this.DataContext = this; }
/// <summary> /// Initializes a new instance of the SelectShelvesetTeamExplorerView class /// </summary> /// <param name="parentSection">Reference to the Team Explorer section where the view is initialized.</param> public SelectShelvesetTeamExplorerView(SelectShelvesetSection parentSection) { this.InitializeComponent(); this.ParentSection = parentSection; this.ListShelvesets.ItemsSource = this.ParentSection.Shelvesets; this.SecondShelvesetUserTextBox.Visibility = ExtensionSettings.Instance.TwoUsersView ? Visibility.Visible : Visibility.Hidden; this.SecondShelvesetUserTextBox.Height = ExtensionSettings.Instance.TwoUsersView ? 25 : 0; this.ShowAsButton.IsChecked = ExtensionSettings.Instance.ShowAsButton; this.TwoUsersView.IsChecked = ExtensionSettings.Instance.TwoUsersView; this.DataContext = this; }