示例#1
0
 internal void AddToHierarchy(SideToolTabItem item)
 {
     if (this._Hierarchy == null)
     {
         throw new InvalidOperationException("SideToolItem.AddToHierarchy: La colección de SideToolItems no está inicializada. No se pueden añadir items");
     }
     if (item == null)
     {
         throw new ArgumentNullException();
     }
     this._Hierarchy.Add(item);
 }
示例#2
0
        private void FillHierarchy(ref VMSideTool parent)
        {
            /*
             *                 <TreeViewItem Header="Comunidad" Style="{StaticResource triggerCdades}"/>
             *                 <TreeViewItem Header="Propietarios" Style="{StaticResource triggerProps}"/>
             *                 <TreeViewItem Header="Libro Mayor" Style="{StaticResource triggerMayor}"/>
             *                 <TreeViewItem Header="Libro Diario" Style="{StaticResource triggerDiario}"/>
             */

            this._Hierarchy = new ObservableCollection <SideToolTabItem>();
            //SideToolTabItem item = new SideToolTabItem(parent);
            //item.ItemHeader = "Comunidad";
            ////item.Style = parent.Resources["triggerCdades"] as Style;
            //item.ComCod = this.ComCod;
            //item.tabType = TabType.Cdad;
            SideToolTabItem item = new SideToolTabItem(parent, "Comunidad", this.ComCod, TabType.Cdad);

            this.Hierarchy.Add(item);

            //item = new SideToolTabItem(parent);
            //item.ItemHeader = "Propietarios";
            ////item.Style = parent.Resources["triggerProps"] as Style;
            //item.ComCod = this.ComCod;
            //item.tabType = TabType.Props;
            item = new SideToolTabItem(parent, "Propietarios", this.ComCod, TabType.Props);
            this.Hierarchy.Add(item);

            //item = new SideToolTabItem(parent);
            //item.ItemHeader = "Libro Mayor";
            ////item.Style = parent.Resources["triggerMayor"] as Style;
            //item.ComCod = this.ComCod;
            //item.tabType = TabType.Mayor;
            item = new SideToolTabItem(parent, "Libro Mayor", this.ComCod, TabType.Mayor);
            this.Hierarchy.Add(item);

            //item = new SideToolTabItem(parent);
            //item.ItemHeader = "Libro Diario";
            ////item.Style = parent.Resources["triggerDiario"] as Style;
            //item.ComCod = this.ComCod;
            //item.tabType = TabType.Diario;
            item = new SideToolTabItem(parent, "Libro Diario", this.ComCod, TabType.Diario);
            this.Hierarchy.Add(item);
            NotifyPropChanged("Hierarchy");
        }
示例#3
0
 public Command_TabItemButtonClick(SideToolTabItem item, VMSideTool side)
 {
     _Item = item;
     _Side = side;
 }