Example #1
0
 private void addCustomPropertyEdgeTypeComboBoxRow(AbstractNetwork network, string labelText, EdgeType edgeType, NetworkProperty networkProperty, bool disabled)
 {
     this.tlpProperty.RowStyles.Add(new RowStyle(SizeType.Absolute, MDIParent.PROPERTY_ROW_HEIGHT));
     this.tlpProperty.Controls.Add(ControlHelper.getPropertyLabel(labelText), 0, this.tmpPropertyPanelRowCount);
     this.tlpProperty.Controls.Add(ControlHelper.getPropertyEdgeTypeComboBox(edgeType, new EventHandler(dynamicProperty_ValueChanged), new PropertyTag(networkProperty, network), disabled), 1, this.tmpPropertyPanelRowCount);
     this.tmpPropertyPanelRowCount++;
 }
Example #2
0
 private static void addNewItem(EdgeType item)
 {
     if (EdgeType.values == null)
     {
         EdgeType.values = new List<EdgeType>();
     }
     EdgeType.values.Add(item);
 }
Example #3
0
 public AbstractEdge(string name, long unid, bool showAnnotation, int weight, Position position, Transition transition, PointF curveMiddlePoint, EdgeType edgeType)
     : base(name, unid, showAnnotation)
 {
     this.weight = weight;
     this.position = position;
     this.transition = transition;
     this.curveMiddlePointOffset = curveMiddlePoint;
     this.edgeType = edgeType;
 }
 public EdgeTransitionPosition(string name, long unid, bool showAnnotation, int weight, Transition transition, Position position, PointF curveMiddlePoint, EdgeType edgeType)
     : base(name, unid, showAnnotation, weight, position, transition, curveMiddlePoint, edgeType)
 {
 }
Example #5
0
 public static ComboBox getPropertyEdgeTypeComboBox(EdgeType edgeType, EventHandler handler, PropertyTag propertyTag, bool disabled)
 {
     ComboBox control = new ComboBox();
     control.Name = "tbCustomComboBox_" + ControlHelper.CONTROLCOUNT++;
     foreach (EdgeType item in EdgeType.Values)
     {
         control.Items.Add(item);
     }
     control.SelectedItem = edgeType;
     control.DropDownStyle = ComboBoxStyle.DropDownList;
     control.SelectedValueChanged += handler;
     control.Tag = propertyTag;
     control.Enabled = !disabled;
     control.Anchor = ((AnchorStyles)((AnchorStyles.Left | AnchorStyles.Right)));
     return control;
 }