Exemplo n.º 1
0
 /// <summary>
 /// 保存实验参数
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void 保存实验参数EToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DataSave ds = new DataSave();
     ds.ButtonDex = 1;
     //保存实验参数输入窗口数据
     if (this.isParasOpen == true)
     {
         ds.isParasOpen = true;
         ds.LD = this.LD;
         ds.Ls = this.Ls;
         ds.RD = this.RD;
         ds.E = this.E;
         ds.Cbar = this.Cbar;
         ds.Cs = this.Cs;
         ds.Lyb1 = this.Lyb1;
         ds.Lyb2 = this.Lyb2;
         ds.dt = this.dt;
         ds.EB1 = this.EB1;
         ds.EB2 = this.EB2;
         ds.Rg1 = this.Rg1;
         ds.Rg2 = this.Rg2;
         ds.K1 = this.K1;
         ds.K2 = this.K2;
         ds.RC1 = this.RC1;
         ds.RC2 = this.RC2;
         ds.R1 = this.R1;
     }
     //保存异常数据修正窗口数据
     if (this.isAbnOpen == true)
     {
         ds.isAbnOpen = true;
         ds.ChaPoint = this.ChaPoint;
         ds.oriValue = this.oriValue;
         ds.preValue = this.preValue;
         ds.nexValue = this.nexValue;
         ds.recValue = this.recValue;
     }
     //保存光滑处理窗口数据
     if (this.isSmoothOpen == true)
     {
         ds.isSmoothOpen = true;
         ds.smoothN = this.smoothN;
         ds.totalCnt = this.totalCnt;
         ds.CHFlag = this.CHFlag;
     }
     //保存基线矫正窗口数据
     if (this.isBaseOpen == true)
     {
         ds.isBaseOpen = true;
         ds.SolDataL = this.SolDataL;
         ds.NowCH = this.NowCH;
         ds.CHRecVal = this.CHRecVal;
     }
     //保存波的最大值确认窗口数据
     if (this.isMaxOpen == true)
     {
         ds.isMaxOpen = true;
         ds.pos1 = this.pos1;        //光标前位置
         ds.pos2 = this.pos2;        //光标后位置
         ds.addr1 = this.addr1;
         ds.addr2 = this.addr2;
         ds.addr3 = this.addr3;
         ds.IMax = this.IMax;
         ds.RMax = this.RMax;
         ds.TMax = this.TMax;
     }
     //保存波的起点确认窗口数据
     if (this.isStartOpen == true)
     {
         ds.isStartOpen = true;
         ds.Idex = this.Idex;
         ds.Rdex=this.Rdex;
         ds.Tdex=this.Tdex;
         ds.StartPos1 = this.StartPos1;
         ds.StartPos2 = this.StartPos2;
         ds.StartPos3 = this.StartPos3;
         ds.CalStartPos2 = this.CalStartPos2;
         ds.CalStartPos3 = this.CalStartPos3;
         ds.SetStartPos1 = this.CalStartPos3;
         ds.SetStartPos2 = this.SetStartPos2;
         ds.SetStartPos3 = this.SetStartPos3;
     }
     if (ds.ShowDialog() == DialogResult.OK)
     {
         ds.Close();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 保存应变信号
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void 保存应变信号SToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DataSave ds = new DataSave();
     ds.ButtonDex = 2;
     //保存电压-时间数据
     ds.Ux1.Clear();
     ds.Uy1.Clear();
     ds.Uy2.Clear();
     ds.Uy3.Clear();
     if (this.Ux1.Count != 0 && this.Uy1.Count != 0)
     {
         for (int t = 0; t < this.Ux1.Count; t++)
         {
             ds.Ux1.Add(this.Ux1[t]);
             ds.Uy1.Add(this.Uy1[t]);
             ds.Uy2.Add(this.Uy2[t]);
             ds.Uy3.Add(this.Uy3[t]);
         }
     }
     //保存应变-时间数据
     ds.Sy1.Clear();
     ds.Sy2.Clear();
     ds.Sy3.Clear();
     if (this.Ux1.Count != 0 && this.Sy1.Count != 0)
     {
         for (int t = 0; t < this.Ux1.Count; t++)
         {
             ds.Sy1.Add(this.Sy1[t]);
             ds.Sy2.Add(this.Sy2[t]);
             ds.Sy3.Add(this.Sy3[t]);
         }
     }
     if (ds.ShowDialog() == DialogResult.OK)
     {
         ds.Close();
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// 保存处理结果
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void 保存处理结果RToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DataSave ds = new DataSave();
     ds.ButtonDex = 3;
     //时间
     ds.Ux1.Clear();
     if (this.Ux1.Count != 0)
     {
         for (int t = 0; t < Ux1.Count; t++)
         {
             ds.Ux1.Add(this.Ux1[t]);
         }
     }
     //工程应变-时间
     ds.ESy1.Clear();
     ds.ESy2.Clear();
     if (this.Ux1.Count != 0 && this.ESy1.Count != 0)
     {
         for (int t = 0; t < Ux1.Count; t++)
         {
             ds.ESy1.Add(this.ESy1[t]);
             ds.ESy2.Add(this.ESy2[t]);
         }
     }
     //工程应变力-时间
     ds.ESFy1.Clear();
     ds.ESFy2.Clear();
     if (this.Ux1.Count != 0 && this.ESFy1.Count != 0)
     {
         for (int t = 0; t < Ux1.Count; t++)
         {
             ds.ESFy1.Add(this.ESFy1[t]);
             ds.ESFy2.Add(this.ESFy2[t]);
         }
     }
     //工程应变率-时间
     ds.ESRy1.Clear();
     ds.ESRy2.Clear();
     if (this.Ux1.Count != 0 && this.ESRy1.Count != 0)
     {
         for (int t = 0; t < Ux1.Count; t++)
         {
             ds.ESRy1.Add(this.ESRy1[t]);
             ds.ESRy2.Add(this.ESRy2[t]);
         }
     }
     if (ds.ShowDialog() == DialogResult.OK)
     {
         ds.Close();
     }
 }