public DisplayData(string strTrainID, string strDestination) { this.TimeToWait = new TimeSpan(0L); this.Type = DisplayDataType.Regular; base.Train = strTrainID; base.Destination = strDestination; }
public DisplayData(string strTrainID, DisplayDataType type) { this.TimeToWait = new TimeSpan(0L); this.Type = DisplayDataType.Regular; base.Train = strTrainID; this.Type = type; }
public ShadingForm(ShadingConfig shadingConfig, DisplayDataType type) { this.InitializeComponent(); this.m_ShadingConfig = shadingConfig; this.m_Type = type; this.Init(type); }
protected bool HasDisplayDataType(DisplayDataType type) { lock (this) { foreach (DisplayData data in this.m_htTrainID2Data.Values) { if (data.Type == type) { return(true); } } return(false); } }
protected bool HasDisplayDataType(DisplayDataType type) { lock (this) { foreach (DisplayData data in this.m_htTrainID2Data.Values) { if (data.Type == type) { return true; } } return false; } }
public abstract void ResetDisplayTrainData(string strTrainID, DisplayDataType type);
private void SetDgvColumnDisplay(DisplayDataType displayDataType) { if (displayDataType == DisplayDataType.ValueIntervals) { this.dgvLegend.Columns["MinValue"].Visible = true; this.dgvLegend.Columns["MaxValue"].Visible = true; this.dgvLegend.Columns["Value"].Visible = false; } else { this.dgvLegend.Columns["MinValue"].Visible = false; this.dgvLegend.Columns["MaxValue"].Visible = false; this.dgvLegend.Columns["Value"].Visible = true; } }
private void Init(DisplayDataType type) { this.m_StartColor = this.m_ShadingConfig.StartColor; this.m_EndColor = this.m_ShadingConfig.EndColor; this.txt_StartBreak.Text = this.m_ShadingConfig.StartValue.ToString(); this.txt_EndBreak.Text = this.m_ShadingConfig.EndValue.ToString(); this.txt_Interval.Text = this.m_ShadingConfig.Space.ToString(); this.txt_Interval.Focus(); this.txt_Interval.SelectAll(); this.InitialColor(); if (type == DisplayDataType.DisCreteValue) { this.txt_StartBreak.Enabled = false; this.txt_EndBreak.Enabled = false; this.txt_Interval.Enabled = false; } }