private void processComboBox_SelectedIDChangedEvent(CustomCombo source, int ID, string Name) { if (this.navigatorGrid == null || this.assessmentResults == null) { logger.Warn("NavigatorGrid is NULL"); } this.navigatorGrid.loadData(ID); }
private void CustomComboControl_SelectedIDChangedEvent(CustomCombo source, int ID, string Name) { parameterTable.SelectedID = ID; this.processName = Name; parameterTable.UpdateViewComponent(); createRunInputs(); }
protected virtual void createRunInputs() { if (processCustomCombo.SelectedItem != null) { inputsFlowLayoutPanel.Controls.Clear(); customComboList.Clear(); int selectedItemId = processCustomCombo.SelectedID; Dictionary<String, String> inputs = modelingController.GetInputNames(selectedItemId, true); inputsFlowLayoutPanel.SuspendLayout(); foreach (String input in inputs.Keys) { Label label = new Label(); //label.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); label.AutoSize = true; label.Margin = new System.Windows.Forms.Padding(3); label.Text = input + ":"; label.Size = new System.Drawing.Size(229, 21); //label.Dock = DockStyle.Fill; this.inputsFlowLayoutPanel.Controls.Add(label); CustomCombo customCombo = new CustomCombo(); //customCombo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); customCombo.Controller = projectController; customCombo.LinkType = inputs[input]; customCombo.Type = input; customCombo.DisplayID = CurrentProjectID; customCombo.UpdateViewComponent(); customCombo.Size = new System.Drawing.Size(229, 21); //customCombo.Dock = DockStyle.Fill; this.inputsFlowLayoutPanel.Controls.Add(customCombo); customComboList.Add(customCombo); } inputsFlowLayoutPanel.ResumeLayout(); } }
private void CustomComboControl_SelectedIDChangedEvent(CustomCombo source, int ID, string Name) { if (SelectedIDChangedEvent != null) { SelectedIDChangedEvent(this.CustomComboControl, ID, Name); } }
private void UpdateDiagramFromDynamicCombo(CustomCombo dynamicCombo, int ID, string Name) { if (diagrams.ContainsKey(tabControl1.SelectedIndex) && grids.ContainsKey(tabControl1.SelectedIndex)) { Diagram theGoView = diagrams[tabControl1.SelectedIndex]; DiagramGridPanel theGrid = grids[tabControl1.SelectedIndex]; String newDynamicLinkType = this.Controller.GetDynamicLinkType(theGoView.DiagramName, ID.ToString()); theGoView.RootID = ID; theGoView.DisplayID = ID; theGoView.DiagramName = newDynamicLinkType; theGrid.LinkType = newDynamicLinkType; UpdateViewComponent(); } }
private void toolStripCombo_SelectedIDChangedEvent(CustomCombo source, int ID, string Name) { comboIsSelecting = true; selectingCombo = source; UpdateDiagramFromDynamicCombo(source, ID, Name); if (DynamicComboIDChangedEvent != null) { DynamicComboIDChangedEvent(source, ID, Name); // forward the combo event to external listeners } comboIsSelecting = false; selectingCombo = null; }