void ucPosition_PageTypeSelectionChanged(object sender, PageTypeSelectionChangedEventArgs e)
 {
     if (ucPosition.PageType.HasValue)
     {
         PageTypePresentationType type = PageTypeUtil.ResolvePresentationType(ModuleType.NewsAndBulletin, ucPosition.PageType.Value.ToString());
         this.ckbIsHomePageShow.Visibility = (type == PageTypePresentationType.Category1 || type == PageTypePresentationType.Category2 || type == PageTypePresentationType.Category3) ? Visibility.Visible : Visibility.Collapsed;
         this.ckbIsC1Show.Visibility       = (type == PageTypePresentationType.Category2 || type == PageTypePresentationType.Category3) ? Visibility.Visible : Visibility.Collapsed;
         this.ckbIsC2Show.Visibility       = (type == PageTypePresentationType.Category3) ? Visibility.Visible : Visibility.Collapsed;
     }
 }
Пример #2
0
        private void RaisePageTypeSelectionChanged()
        {
            var pageChangedEvent = PageTypeSelectionChanged;

            if (pageChangedEvent != null)
            {
                var args = new PageTypeSelectionChangedEventArgs(this.PageType);
                pageChangedEvent(this, args);
            }
        }
Пример #3
0
 void ucPageType_PageTypeSelectionChanged(object sender, PageTypeSelectionChangedEventArgs e)
 {
     if (ucPageType.PageType == 25)
     {
         spProductRange.Visibility = Visibility.Visible;
     }
     else
     {
         spProductRange.Visibility = Visibility.Collapsed;
     }
 }
 private void ucPageType_PageTypeSelectionChanged(object sender, PageTypeSelectionChangedEventArgs e)
 {
     if (cbUpdateSameGroupAl != null)
     {
         lstFlagshipList.Visibility = System.Windows.Visibility.Collapsed;
         if (e.PageType == 18)
         {
             cbUpdateSameGroupAl.Visibility = System.Windows.Visibility.Visible;
         }
         else if (e.PageType == 9)
         {
             //根据选定的页面类型加载页面列表
             PageTypeFacade facade = new PageTypeFacade(CPApplication.Current.CurrentPage);
             facade.GetPages(CPApplication.Current.CompanyCode, lstChannelList.SelectedValue == null ? "1" : lstChannelList.SelectedValue.ToString(), (int)ModuleType.Banner, "9", (s, args) =>
             {
                 if (args.FaultsHandle())
                 {
                     return;
                 }
                 if (args.Result != null && args.Result.PageList != null)
                 {
                     args.Result.PageList.Insert(0, new WebPage {
                         ID = null, PageName = ResCommonEnum.Enum_Select
                     });
                     lstFlagshipList.ItemsSource = args.Result.PageList;
                     if (lstFlagshipList.Items.Count > 0 && (int)lstFlagshipList.SelectedValue == 0)
                     {
                         lstFlagshipList.SelectedIndex = 0;
                     }
                 }
             });
             lstFlagshipList.Visibility = System.Windows.Visibility.Visible;
         }
         else
         {
             cbUpdateSameGroupAl.Visibility = System.Windows.Visibility.Collapsed;
         }
     }
 }
 public void ucPosition_PageTypeSelectionChanged(PageTypeSelectionChangedEventArgs e)
 {
 }