void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MainStackPannelFuzzyMaster = ((System.Windows.Controls.StackPanel)(target)); return; case 2: this.LayerControlOrExplode = ((GUIXudon.Controls.LayerControl)(target)); return; case 3: this.LayerControlForXCellsFuzzy = ((GUIXudon.Controls.LayerControl)(target)); return; case 4: this.LayerControlForRegionsManager = ((GUIXudon.Controls.LayerControl)(target)); return; case 5: this.LayerControlForHistogram = ((GUIXudon.Controls.LayerControl)(target)); return; } this._contentLoaded = true; }
public LayerControl AddNewLevelForXCellsOrExplode(double orXplodelevel) { var newLayerControl = new LayerControl(); newLayerControl.Height = 75; newLayerControl.LayerName.Content = $"{orXplodelevel}"; LayerControlOrExplode.StackPanelInScrollViewerLevel.Children.Add(newLayerControl); ListOfLevelsForXCellsOrExplode.Add(newLayerControl); return(newLayerControl); }
public void AddLevel(double level) { if (ListOfLevelLayersUserControls == null) { ListOfLevelLayersUserControls = new List <LayerControl>(); } var levelLayerUserControl = new LayerControl($"{level}"); StackPanelInScrollViewerLevel.Children.Add(levelLayerUserControl); ListOfLevelLayersUserControls.Add(levelLayerUserControl); }