Example #1
0
        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);
		}
Example #2
0
 private void CustomComboControl_SelectedIDChangedEvent(CustomCombo source, int ID, string Name)
 {
     
     parameterTable.SelectedID = ID;
     this.processName = Name;
     parameterTable.UpdateViewComponent();
     createRunInputs();
 }
Example #3
0
        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);
     }
 }
Example #5
0
        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();
            }
        }
Example #6
0
        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;
        }