Exemplo n.º 1
0
 public MemoryCell(DateTime dt, DataBits db)
 {
     this.dt = dt;
     this.db = db;
 }
Exemplo n.º 2
0
 public void setValueOfLab(DataBits szDb)
 {
     if (labPM1_0CF1.InvokeRequired)
     {
         Action act = () => this.labPM1_0CF1.Text = szDb.M1_0CF1.ToString() + "ug/m3";
         labPM1_0CF1.BeginInvoke(act);
     }
     if (labPM2_5CF1.InvokeRequired)
     {
         Action act = () => this.labPM2_5CF1.Text = szDb.M2_5CF1.ToString() + "ug/m3";
         labPM2_5CF1.BeginInvoke(act);
     }
     if (labPM10CF1.InvokeRequired)
     {
         Action act = () => this.labPM10CF1.Text = szDb.M10CF1.ToString() + "ug/m3";
         labPM10CF1.BeginInvoke(act);
     }
     if (labPM1_0.InvokeRequired)
     {
         Action act = () => this.labPM1_0.Text = szDb.M1_0.ToString() + "ug/m3";
         labPM1_0.BeginInvoke(act);
     }
     if (labPM2_5.InvokeRequired)
     {
         Action act = () => this.labPM2_5.Text = szDb.M2_5.ToString() + "ug/m3";
         labPM2_5.BeginInvoke(act);
     }
     if (labPM10.InvokeRequired)
     {
         Action act = () => this.labPM10.Text = szDb.M10_0.ToString() + "ug/m3";
         labPM10.BeginInvoke(act);
     }
     if (labKL0_3.InvokeRequired)
     {
         Action act = () => this.labKL0_3.Text = szDb.P0_3.ToString() + "个";
         labKL0_3.BeginInvoke(act);
     }
     if (labKL0_5.InvokeRequired)
     {
         Action act = () => this.labKL0_5.Text = szDb.P0_5.ToString() + "个";
         labKL0_5.BeginInvoke(act);
     }
     if (labKL1_0.InvokeRequired)
     {
         Action act = () => this.labKL1_0.Text = szDb.P1_0.ToString() + "个";
         labKL1_0.BeginInvoke(act);
     }
     if (labKL2_5.InvokeRequired)
     {
         Action act = () => this.labKL2_5.Text = szDb.P2_5.ToString() + "个";
         labKL2_5.BeginInvoke(act);
     }
     if (labKL5_0.InvokeRequired)
     {
         Action act = () => this.labKL5_0.Text = szDb.P5_0.ToString() + "个";
         labKL5_0.BeginInvoke(act);
     }
     if (labKL10.InvokeRequired)
     {
         Action act = () => this.labKL10.Text = szDb.P10.ToString() + "个";
         labKL10.BeginInvoke(act);
     }
 }