SDL.TridionVSRazorExtension.ProjectDestinationDialogWindow.ListBox1_OnSelectionChanged C# (CSharp) 메소드

ListBox1_OnSelectionChanged() 개인적인 메소드

private ListBox1_OnSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
sender object
e System.Windows.Controls.SelectionChangedEventArgs
리턴 void
        private void ListBox1_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ProjectFolderInfo folder = this.ProjectFolders[this.lstDestination.SelectedIndex];
            if (folder == null)
                return;

            ProjectFolderRole role = folder.ProjectFolderRole;

            this.chkSyncTemplate.IsEnabled = role == ProjectFolderRole.PageLayout || role == ProjectFolderRole.ComponentLayout;
            this.chkSyncTemplate.IsChecked = Common.IsolatedStorage.Service.GetFromIsolatedStorage(Common.IsolatedStorage.Service.GetId(Mapping.Host.GetDomainName(), Mapping.Host.GetPort(), "ProjectDestination_SyncTemplate")) == "true";
        }