public _GlobalDataModelsPage05(GlobalDataModels global) { DataModelCircularGeneral = new DataModelCircularGeneral(global); DataModelRadial1 = new DataModelRadial1(global); DataModelRadial2 = new DataModelRadial2(global); DataModelRadialGeneral = new DataModelRadialGeneral(global); DataModelCircular_ZoneCollection = new DataModelCircular_ZoneCollection(global); }
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; }); }