示例#1
0
 public override void GetControlAdminInfo(object objectControl, DataTable dataTable)
 {
     if (!Ribbon.Name.Equals(string.Empty))
     {
         var form = Ribbon.FindForm();
         if (form != null)
         {
             dataTable.Rows.Add(Ribbon.Name, MainSettings.GetRussianName(Ribbon.GetType()
                                                                         .Name),
                                Ribbon.Text, Ribbon, form.Name);
         }
     }
     foreach (var rbnCategory in Ribbon.PageCategories)
     {
         rbnCategory.GetControlTuner()
         .GetControlAdminInfo(rbnCategory, dataTable);
     }
     foreach (var rbnPage in Ribbon.Pages)
     {
         rbnPage.GetControlTuner()
         .GetControlAdminInfo(rbnPage, dataTable);
     }
     foreach (var rbnCtrl in Ribbon.Manager.Items)
     {
         rbnCtrl.GetControlTuner()
         .GetControlAdminInfo(rbnCtrl, dataTable);
     }
 }
 public override void GetControlAdminInfo(object objectControl, DataTable dataTable)
 {
     dataTable.Rows.Add(Category.Name, MainSettings.GetRussianName(Category.GetType()
                                                                   .Name), Category.Text, Category, Category.Ribbon.Name);
     foreach (var page in Category.Pages)
     {
         page.GetControlTuner()
         .GetControlAdminInfo(page, dataTable);
     }
 }
示例#3
0
        /// <summary>
        ///     Получает состояние контрола в виде таблицы для удобства отображения
        /// </summary>
        public virtual void GetControlAdminInfo(object objectControl, DataTable dataTable)
        {
            var control = objectControl as Control;

            if (control == null || control.Name.Equals(string.Empty))
            {
                return;
            }
            dataTable.Rows.Add(control.Name, MainSettings.GetRussianName(control.GetType()
                                                                         .Name),
                               control.Text, control, control.Parent.GetParentName());
        }
 public override void GetControlAdminInfo(object objectControl, DataTable dataTable)
 {
     if (!string.IsNullOrEmpty(Pivot.Name))
     {
         dataTable.Rows.Add(Pivot.Name, MainSettings.GetRussianName(Pivot.GetType()
                                                                    .Name),
                            Pivot.Text, Pivot, Pivot.Parent.GetParentName());
     }
     foreach (PivotGridField field in Pivot.Fields)
     {
         field.GetControlTuner()
         .GetControlAdminInfo(field, dataTable);
     }
 }
示例#5
0
        public override void GetControlAdminInfo(object objectControl, DataTable dataTable)
        {
            var parentName = !string.IsNullOrWhiteSpace(Page.Category.Name)
                ? Page.Category.Name
                : Page.Ribbon.Name;

            dataTable.Rows.Add(Page.Name, MainSettings.GetRussianName(Page.GetType()
                                                                      .Name), Page.Text, Page, parentName);
            if (Page.Groups.Count == 0)
            {
                return;
            }
            foreach (var group in Page.Groups)
            {
                @group.GetControlTuner()
                .GetControlAdminInfo(group, dataTable);
            }
        }
示例#6
0
 public override void GetControlAdminInfo(object objectControl, DataTable dataTable)
 {
     if (GColumn != null)
     {
         dataTable.Rows.Add(GColumn.Name, MainSettings.GetRussianName(GColumn.GetType()
                                                                      .Name),
                            string.IsNullOrEmpty(GColumn.Caption)
                 ? GColumn.FieldName
                 : GColumn.Caption, GColumn, GColumn.View.GridControl.Name);
     }
     else if (TreeColumn != null)
     {
         dataTable.Rows.Add(TreeColumn.Name, MainSettings.GetRussianName(TreeColumn.GetType()
                                                                         .Name),
                            string.IsNullOrEmpty(TreeColumn.Caption)
                 ? TreeColumn.FieldName
                 : TreeColumn.Caption, TreeColumn, TreeColumn.TreeList.Name);
     }
 }
示例#7
0
        public override void GetControlAdminInfo(object objectControl, DataTable dataTable)
        {
            if (Item.Name.Equals(string.Empty) || Item.Links.Count == 0)
            {
                return;
            }
            string parentName;

            if (Item.Links[Item.Links.Count - 1].OwnerItem != null)
            {
                parentName = Item.Links[Item.Links.Count - 1].OwnerItem.Name;
            }
            else
            {
                var links = Item.Links[Item.Links.Count - 1].Links as RibbonPageGroupItemLinkCollection;
                if (links == null)
                {
                    return;
                }
                parentName = ((RibbonPageGroupItemLinkCollection)(Item.Links[Item.Links.Count - 1].Links)).PageGroup.Name;
            }
            if (string.IsNullOrEmpty(parentName))
            {
                return;
            }
            dataTable.Rows.Add(Item.Name, MainSettings.GetRussianName(Item.GetType()
                                                                      .Name), Item.Caption, Item, parentName);
            if (ButtonItem == null)
            {
                return;
            }
            var items = ButtonItem.DropDownControl as PopupMenu;

            if (items == null || items.ItemLinks.Count <= 0)
            {
                return;
            }
            foreach (BarButtonItemLink c in items.ItemLinks)
            {
                c.GetControlTuner()
                .GetControlAdminInfo(c, dataTable);
            }
        }
示例#8
0
 public override void GetControlAdminInfo(object objectControl, DataTable dataTable)
 {
     if (Grid != null)
     {
         dataTable.Rows.Add(Grid.Name, MainSettings.GetRussianName(Grid.GetType()
                                                                   .Name),
                            Grid.Text, Grid, Grid.Parent.GetParentName());
         foreach (GridColumn column in View.Columns)
         {
             column.GetControlTuner().GetControlAdminInfo(column, dataTable);
         }
     }
     else if (Tree != null)
     {
         dataTable.Rows.Add(Tree.Name, MainSettings.GetRussianName(Tree.GetType().Name),
                            Tree.Text, Tree, Tree.Parent.GetParentName());
         foreach (TreeListColumn column in Tree.Columns)
         {
             column.GetControlTuner().GetControlAdminInfo(column, dataTable);
         }
     }
 }
示例#9
0
 public override void GetControlAdminInfo(object objectControl, DataTable dataTable)
 {
     dataTable.Rows.Add(Link.Item.Name, MainSettings.GetRussianName(Link.Item.GetType()
                                                                    .Name),
                        Link.Item.Caption, Link.Item, Link.OwnerItem.Name);
 }
示例#10
0
 public override void GetControlAdminInfo(object objectControl, DataTable dataTable)
 {
     dataTable.Rows.Add(Group.Name, MainSettings.GetRussianName(Group.GetType()
                                                                .Name),
                        Group.Text, Group, Group.Page.Name);
 }
 public override void GetControlAdminInfo(object objectControl, DataTable dataTable)
 {
     dataTable.Rows.Add(PivotField.Name, MainSettings.GetRussianName(PivotField.GetType()
                                                                     .
                                                                     Name), PivotField.Caption, PivotField, PivotField.PivotGrid.Name);
 }