示例#1
0
        public Page10(GlobalDataModels global)
        {
            DataModel_CHR_General = global.GDMPage10.DataModel_CHR_General;
            DataModel_CHR_Zones   = global.GDMPage10.DataModel_CHR_Zones;

            this.DataContext = this;
            InitializeComponent();

            CultureRenamer.Rename(UI_Grid_Master);
        }
示例#2
0
        public Page03(GlobalDataModels global)
        {
            DataModel_ScrewPiles = global.GDMPage03.DataModel_ScrewPile;

            InitializeComponent();

            this.DataContext = this;

            CultureRenamer.Rename(UI_Grid_Master);
        }
示例#3
0
        public Page02(GlobalDataModels global)
        {
            DataModel_Anchor = global.GDMPage02.DataModel_Anchor;

            InitializeComponent();

            this.DataContext = this;

            CultureRenamer.Rename(UI_Grid_Master);
        }
示例#4
0
        public Page04(GlobalDataModels global)
        {
            this.globalDataModels = global;

            DataModelCircularGeneral         = global.GDMPage04.DataModelCircularGeneral;
            DataModelRadial1                 = global.GDMPage04.DataModelRadial1;
            DataModelRadial2                 = global.GDMPage04.DataModelRadial2;
            DataModelRadialGeneral           = global.GDMPage04.DataModelRadialGeneral;
            DataModelCircular_ZoneCollection = global.GDMPage04.DataModelCircular_ZoneCollection;

            InitializeComponent();
            this.DataContext = this;

            TemplateGrid = CloneAndRemoveTemplateGrid();

            //if not set in AddPopulateDataAction it will not register
            global.EvtHandler.AddPopulateDataAction(() =>
            {
                DataModelCircular_ZoneCollection.Zones.CollectionChanged += (o, e)
                                                                            =>
                {
                    RecalculateGridSetup();
                    EvaluateUIEnabled();
                };
            });


            CultureRenamer.Rename(UI_Grid_MasterGrid);


            global.EvtHandler.AddPopulateDataAction(() =>
            {
                Button_Click(null, null);
                Button_Click(null, null);

                DataModelCircular_ZoneCollection.Zones[0].SpacingValue          = 200;
                DataModelCircular_ZoneCollection.Zones[0].SelectedIndexDiameter =
                    Enum.GetNames(typeof(EDiameters)).ToList().IndexOf(EDiameters.D25.ToString());

                DataModelCircular_ZoneCollection.Zones[1].SpacingValue          = 150;
                DataModelCircular_ZoneCollection.Zones[1].SelectedIndexDiameter =
                    Enum.GetNames(typeof(EDiameters)).ToList().IndexOf(EDiameters.D25.ToString());
                DataModelCircular_ZoneCollection.Zones[1].RadiusGiven = 8250;

                DataModelCircular_ZoneCollection.Zones[2].SpacingValue          = 125;
                DataModelCircular_ZoneCollection.Zones[2].SelectedIndexDiameter =
                    Enum.GetNames(typeof(EDiameters)).ToList().IndexOf(EDiameters.D25.ToString());
                DataModelCircular_ZoneCollection.Zones[2].RadiusGiven = 6540;

                DataModelCircular_ZoneCollection.Zones[3].SpacingValue = 0;
            });
        }
示例#5
0
        public Page11(GlobalDataModels global)
        {
            DataModelMaterialsFoundation             = global.GDMPage11.DataModelMaterialsFoundation;
            DataModelMaterialsFoundationTowerBase    = global.GDMPage11.DataModelMaterialsFoundationTowerBase;
            DataModelMaterialsLeanConcrete           = global.GDMPage11.DataModelMaterialsLeanConcrete;
            DataModelMaterialsEnvelopeAroundConduits = global.GDMPage11.DataModelMaterialsEnvelopeAroundConduits;
            DataModelMaterialsGrouting       = global.GDMPage11.DataModelMaterialsGrouting;
            DataModelMaterialsFoundationPile = global.GDMPage11.DataModelMaterialsFoundationPile;

            InitializeComponent();
            this.DataContext = this;

            CultureRenamer.Rename(UI_Grid_Master);
        }
示例#6
0
        public Page07(GlobalDataModels global)
        {
            DataModel_StraightBars_Dir1        = global.GDMPage07.DataModel_StraightBars_Dir1;
            DataModel_StraightBars_Dir2        = global.GDMPage07.DataModel_StraightBars_Dir2;
            DataModel_RadialEdgeConcrete       = global.GDMPage07.DataModel_RadialEdgeConcrete;
            DataModel_CircularBarsTop          = global.GDMPage07.DataModel_CircularBarsTop;
            DataModel_CircularBarsExteriorSide = global.GDMPage07.DataModel_CircularBarsExteriorSide;
            DataModel_StraightBars_Extra       = global.GDMPage07.DataModel_StraightBars_Extra;

            InitializeComponent();
            this.DataContext = this;

            CultureRenamer.Rename(UI_MasterGrid);
        }
示例#7
0
        public Page09(GlobalDataModels global)
        {
            DataModelUBABCollection = global.GDMPage09.DataModelUBABCollection;

            InitializeComponent();
            this.DataContext = this;

            CultureRenamer.Rename(UI_Grid_Master);

            global.EvtHandler.AddPostBuildEvents(() => {
                AddNewNDataModel();
                SetGridDataContext(0);
            });

            global.EvtHandler.AddPostBuildEvents(() => {
                DataModelUBABCollection.Collection.CollectionChanged += (o, e) => {
                    foreach (var item in DataModelUBABCollection.Collection)
                    {
                        item.AddEvents();
                        item.Set_InteriorHalfLength();
                    }
                };
            });

            global.EvtHandler.AddPopulateDataAction(() =>
            {
                AddNewNDataModel();
                AddNewNDataModel();

                DataModelUBABCollection.Collection[0].ExteriorHalfLength    = 1000;
                DataModelUBABCollection.Collection[0].SmallEdge             = 170;
                DataModelUBABCollection.Collection[0].DistanceFromTop       = 400;
                DataModelUBABCollection.Collection[0].FreeEdgeLength        = 50;
                DataModelUBABCollection.Collection[0].SelectedIndexDiameter =
                    Enum.GetNames(typeof(EDiameters)).ToList().IndexOf(EDiameters.D16.ToString());
                DataModelUBABCollection.Collection[1].ExteriorHalfLength    = 1000;
                DataModelUBABCollection.Collection[1].SmallEdge             = 170;
                DataModelUBABCollection.Collection[1].DistanceFromTop       = 600;
                DataModelUBABCollection.Collection[1].FreeEdgeLength        = 50;
                DataModelUBABCollection.Collection[1].SelectedIndexDiameter =
                    Enum.GetNames(typeof(EDiameters)).ToList().IndexOf(EDiameters.D18.ToString());
                DataModelUBABCollection.Collection[2].ExteriorHalfLength    = 1000;
                DataModelUBABCollection.Collection[2].SmallEdge             = 170;
                DataModelUBABCollection.Collection[2].DistanceFromTop       = 800;
                DataModelUBABCollection.Collection[2].FreeEdgeLength        = 50;
                DataModelUBABCollection.Collection[2].SelectedIndexDiameter =
                    Enum.GetNames(typeof(EDiameters)).ToList().IndexOf(EDiameters.D20.ToString());
            });
        }
示例#8
0
 private void TabControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     CultureRenamer.Rename(UI_Grid_Master);
 }