コード例 #1
0
        /// <summary>
        /// Uses the standard SCOM personalization options to store user preferences
        /// </summary>
        protected override void ApplyPersonalization()
        {
            if (ColumnCollection != null && ColumnCollection.Count > 0)
            {
                ColumnCollection.Apply(Grid);
                return;
            }

            if (Configuration != null)
            {
                ColumnCollection = ViewSupport.XmlToColumnInfoCollection(Configuration.Presentation);
                ColumnCollection.Apply(Grid);
            }
        }
コード例 #2
0
        protected override void ApplyPersonalization()
        {
            Dbg.Log($"Entering {MethodBase.GetCurrentMethod().Name}");

            if (ColumnCollection != null)
            {
                ColumnCollection.Apply(Grid);
            }
            else
            {
                if (Configuration == null)
                {
                    return;
                }
                ColumnCollection = ViewSupport.XmlToColumnInfoCollection(Configuration.Presentation);
                ColumnCollection.Apply(Grid);
            }
        }
コード例 #3
0
        // Properties of the view itself. I.e. when right-clicked at the view node in the navigation tree.
        protected override void OnViewPropertiesCommand(object sender, CommandEventArgs args)
        {
            ViewConfiguration viewConfiguration = ViewSupport.ViewEditDialog(Site, View, SystemView.State);

            Tag = viewConfiguration;
            if (viewConfiguration == null)
            {
                return;
            }
            Configuration.Configuration = viewConfiguration.Configuration;
            Personalization             = ViewSupport.XmlToColumnInfoCollection(Configuration.Presentation);
            SavePersonalization(this);
            if (QueryCache == null)
            {
                return;
            }
            QueryCache.SetCriteria(GetQueryCriteria());
            UpdateCache(UpdateReason.Refresh);
        }