示例#1
0
        /// <summary>
        /// 编辑类别属性关键字
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void hlEditPropertyKeywords_Click(object sender, RoutedEventArgs e)
        {
            CategoryKeywordsVM            item        = this.QueryResultGrid.SelectedItem as CategoryKeywordsVM;
            UCAddPropertyCategoryKeywords usercontrol = new UCAddPropertyCategoryKeywords();

            usercontrol.VM     = gridVM.SingleOrDefault(a => a.SysNo.Value == item.SysNo.Value);
            usercontrol.Dialog = Window.ShowDialog(ResKeywords.Title_EditPropertyKeywords, usercontrol, (obj, args) =>
            {
                QueryResultGrid.Bind();
            });
        }
 private void UCAddUniversalCategoryKeywords_Loaded(object sender, RoutedEventArgs e)
 {
     Loaded -= new RoutedEventHandler(UCAddUniversalCategoryKeywords_Loaded);
     facade  = new CategoryKeywordsQueryFacade(CPApplication.Current.CurrentPage);
     if (VM != null)
     {
         VM.ChannelID = "1";
         ucKeywordCategory.IsEnabled              = false;
         lstChannel.IsEnabled                     = false;
         ucKeywordCategory.LoadCategoryCompleted += InitCategory;
     }
     else
     {
         VM                     = new CategoryKeywordsVM();
         VM.ChannelID           = "1";
         LayoutRoot.DataContext = VM;
     }
 }