示例#1
0
 public DisplayData(string strTrainID, string strDestination)
 {
     this.TimeToWait  = new TimeSpan(0L);
     this.Type        = DisplayDataType.Regular;
     base.Train       = strTrainID;
     base.Destination = strDestination;
 }
示例#2
0
 public DisplayData(string strTrainID, DisplayDataType type)
 {
     this.TimeToWait = new TimeSpan(0L);
     this.Type       = DisplayDataType.Regular;
     base.Train      = strTrainID;
     this.Type       = type;
 }
示例#3
0
 public ShadingForm(ShadingConfig shadingConfig, DisplayDataType type)
 {
     this.InitializeComponent();
     this.m_ShadingConfig = shadingConfig;
     this.m_Type = type;
     this.Init(type);
 }
示例#4
0
 public DisplayData(string strTrainID, DisplayDataType type)
 {
     this.TimeToWait = new TimeSpan(0L);
     this.Type = DisplayDataType.Regular;
     base.Train = strTrainID;
     this.Type = type;
 }
示例#5
0
 public DisplayData(string strTrainID, string strDestination)
 {
     this.TimeToWait = new TimeSpan(0L);
     this.Type = DisplayDataType.Regular;
     base.Train = strTrainID;
     base.Destination = strDestination;
 }
示例#6
0
 protected bool HasDisplayDataType(DisplayDataType type)
 {
     lock (this)
     {
         foreach (DisplayData data in this.m_htTrainID2Data.Values)
         {
             if (data.Type == type)
             {
                 return(true);
             }
         }
         return(false);
     }
 }
示例#7
0
 protected bool HasDisplayDataType(DisplayDataType type)
 {
     lock (this)
     {
         foreach (DisplayData data in this.m_htTrainID2Data.Values)
         {
             if (data.Type == type)
             {
                 return true;
             }
         }
         return false;
     }
 }
示例#8
0
 public abstract void ResetDisplayTrainData(string strTrainID, DisplayDataType type);
示例#9
0
 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;
     }
 }
示例#10
0
 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;
     }
 }
示例#11
0
 public abstract void ResetDisplayTrainData(string strTrainID, DisplayDataType type);