Esempio n. 1
0
 public SideToolEjercicioItem(VMSideTool parent, EjercicioDLOParaSideTool DLO)
 {
     this._Ejercicio   = DLO;
     this._ItemHeader  = $"{DLO.FechaComienzo} - {DLO.FechaFinal}";
     this._Name       += this._ItemHeader;
     this._ButtonClick = new Command_EjercicioItemButtonClick(this, parent);
 }
Esempio n. 2
0
 public SideToolTabItem(VMSideTool parent, string header, int comCod, TabType tabType)
 {
     this.ComCod       = comCod;
     this.ItemHeader   = header;
     this.Name        += header;
     this._ButtonClick = new Command_TabItemButtonClick(this, parent);
     this.tabType      = tabType;
 }
Esempio n. 3
0
        public SideToolTabItem(int comCod, string comName, VMSideTool parent)
        {
            this.ComCod       = comCod;
            this.ItemHeader   = $"{comCod} - {comName}";
            this.Name        += this.ItemHeader;
            this._ButtonClick = new Command_TabItemButtonClick(this, parent);
            //this.Header = this.ItemHeaderProperty;

            this.FillHierarchy(ref parent);
        }
Esempio n. 4
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");
        }
Esempio n. 5
0
 public Command_EjercicioItemButtonClick(SideToolEjercicioItem item, VMSideTool side)
 {
     _Item = item;
     _Side = side;
 }
Esempio n. 6
0
 public Command_F2KeyBinding(VMSideTool side)
 {
     _Side = side;
 }
Esempio n. 7
0
 public Command_TabItemButtonClick(SideToolTabItem item, VMSideTool side)
 {
     _Item = item;
     _Side = side;
 }
Esempio n. 8
0
 public SideToolTabItem(VMSideTool parent)
 {
     this._ButtonClick = new Command_TabItemButtonClick(this, parent);
 }