internal DiscreteElement(ColorDisplayType disPlay, SymbolElement symbolElement, string dValue, string dLegend, bool dIsEnabled) { this.m_DisType = disPlay; this.m_Symbol = symbolElement; this.m_elementcolor = this.m_Symbol.ForeColor; this.value = dValue; this.legend = dLegend; this.isenabled = dIsEnabled; }
public ShadingForm(ColorDisplayType disType, DefaultValue defaultValue) { this.components = null; this.InitializeComponent(); this.m_CurrentDisplayType = disType; if (!defaultValue.Equals(null)) { this.numericTextBox_First.Value = (decimal) defaultValue.m_StartValue; this.numericTextBox_Last.Value = (decimal) defaultValue.m_EndValue; this.numericTextBox_Interval.Value = (decimal) defaultValue.m_Space; this.popupColorButton_Start.SelectedColor = defaultValue.m_StartColor; this.popupColorButton_EndColor.SelectedColor = defaultValue.m_EndColor; } }
internal void DiscreteColorss(Properties2Display.Discrete discreteElements, FieldType fT) { this.AddTableHeaderOnly(this.tableLayoutPanel1); Field2ColorElements<DiscreteElement> elements = discreteElements.FieldTwoColor.Find(delegate (Field2ColorElements<DiscreteElement> f2cs) { return f2cs.Field.Equals(fT); }); if (elements != null) { this.tableLayoutPanel1.RowCount = elements.Elements.Count + 1; m_ColorDisplayType = elements.DisType; } else { return; } this.AddTableContentOnly(this.tableLayoutPanel1, elements); }
private void UserControl() { amount = 1; if (target == null) { HandleTranslation(); HandleRotation(); } else { FollowTarget(); } HandlePerception(); if (Input.GetKeyDown(KeyCode.Escape)) { target = null; } if (Input.GetKeyDown(KeyCode.Tab)) { if (target != null) { showStats = !showStats; } else { switch (displayType) { case DisplayType.None: displayType = DisplayType.Statistics; break; case DisplayType.Statistics: displayType = DisplayType.Records; break; case DisplayType.Records: displayType = DisplayType.None; break; } } } if (Input.GetKey(KeyCode.Comma) && Time.timeScale > 0.05f) { Time.timeScale -= 0.05f; } if (Input.GetKey(KeyCode.Period)) { Time.timeScale += 0.05f; } if (Input.GetKeyDown(KeyCode.C)) { switch (colorToggle) { case ColorDisplayType.None: colorToggle = ColorDisplayType.Action; break; case ColorDisplayType.Action: colorToggle = ColorDisplayType.Gender; break; case ColorDisplayType.Gender: colorToggle = ColorDisplayType.None; break; } } }
protected Field2ColorElements<DiscreteElement> Field2Colors(FieldType fT, ColorDisplayType disType, params DiscreteElement[] DiscElem) { Field2ColorElements<DiscreteElement> elements = new Field2ColorElements<DiscreteElement>(disType); List<DiscreteElement> list = new List<DiscreteElement>(); foreach (DiscreteElement element in DiscElem) { if (element.DisType != elements.DisType) { throw new ArgumentException("元素类型与集合指定的元素类型不匹配"); } list.Add(element); } elements.Field = fT; elements.Elements = list; return elements; }
public ShadingForm(ColorDisplayType disType) { this.components = null; this.InitializeComponent(); this.m_CurrentDisplayType = disType; }