Exemplo n.º 1
0
        private void btnFanXuLie_Click(object sender, EventArgs e)
        {
            System.IO.FileStream defs = new System.IO.FileStream("二进制序列化.dat", System.IO.FileMode.OpenOrCreate);
            BinaryFormatter      bf   = new BinaryFormatter();
            Well2 s1 = (Well2)bf.Deserialize(defs);
            Well2 s2 = (Well2)bf.Deserialize(defs);
            Well2 s3 = (Well2)bf.Deserialize(defs);

            defs.Close();
            richTextBox1.AppendText("二进制 反序列化 成功\r\n");
        }
Exemplo n.º 2
0
        private void btnXuLie_Click(object sender, EventArgs e)
        {
            System.IO.FileStream fs = new System.IO.FileStream("二进制序列化.dat", System.IO.FileMode.Create);
            BinaryFormatter      bf = new BinaryFormatter();

            Well2 stu1 = new Well2("A01", null, "Absolute Quantification", "",
                                   null, "", null, "", false, false,
                                   null, null, null, null, null,
                                   null, null, null, null, null,
                                   null, null, null, null,
                                   null, null, null, null,
                                   0, null, null, null, null, null,
                                   null, null, null, null, null,
                                   null, null, null, null, null,
                                   false, 20f, 0.85f, 2u, 1u, 1u, 1u, 0);
            Well2 stu2 = new Well2("A01", null, "Absolute Quantification", "",
                                   null, "", null, "", false, false,
                                   null, null, null, null, null,
                                   null, null, null, null, null,
                                   null, null, null, null,
                                   null, null, null, null,
                                   0, null, null, null, null, null,
                                   null, null, null, null, null,
                                   null, null, null, null, null,
                                   false, 20f, 0.85f, 2u, 1u, 1u, 1u, 0);
            Well2 stu3 = new Well2("A01", null, "Absolute Quantification", "",
                                   null, "", null, "", false, false,
                                   null, null, null, null, null,
                                   null, null, null, null, null,
                                   null, null, null, null,
                                   null, null, null, null,
                                   0, null, null, null, null, null,
                                   null, null, null, null, null,
                                   null, null, null, null, null,
                                   false, 20f, 0.85f, 2u, 1u, 1u, 1u, 0);

            bf.Serialize(fs, stu1);
            bf.Serialize(fs, stu2);
            bf.Serialize(fs, stu3);

            fs.Close();

            richTextBox1.AppendText("二进制 序列化 成功\r\n");
        }
Exemplo n.º 3
0
 public Well2(Well2 w)
 {
 }
Exemplo n.º 4
0
        public void CopyWell(Well2 m)
        {
            this.AssayName               = new string[2];
            this.AssayType               = new string[2];
            this.AssayTarget             = new string[2];
            this.Concentration           = new float?[2];
            this.ShowThresholdLine       = new bool[2];
            this.MinConfidenceInterval   = new float?[2];
            this.MaxConfidenceInterval   = new float?[2];
            this.MinConfidenceInterval68 = new float?[2];
            this.MaxConfidenceInterval68 = new float?[2];

            //第一组
            this.FixedLabel = m.FixedLabel;//样本标识
            if (m.SampleName == null)
            {
                this.SampleName = "";
            }
            else
            {
                this.SampleName = m.SampleName;     //样本名字
            }
            this.ExperimentType = m.ExperimentType; //实验类型
            this.ExperimentName = m.ExperimentName; //实验名称
            //第二组
            this.AssayType[0]   = m.AssayType[0];   //类似 Well.Type_NotUsed;
            this.AssayTarget[0] = m.AssayTarget[0]; //FAM 名字

            this.AssayType[1]         = m.AssayType[1];
            this.AssayTarget[1]       = m.AssayTarget[1];
            this.ShowThresholdLine[0] = m.ShowThresholdLine[0];
            this.ShowThresholdLine[1] = m.ShowThresholdLine[1];
            //第三组
            this.Concentration[0]           = m.Concentration[0];
            this.MinConfidenceInterval[0]   = m.MinConfidenceInterval[0];
            this.MaxConfidenceInterval[0]   = m.MaxConfidenceInterval[0];
            this.MinConfidenceInterval68[0] = m.MinConfidenceInterval68[0];
            this.MaxConfidenceInterval68[0] = m.MaxConfidenceInterval68[0];
            //第四组
            this.Concentration[1]           = m.Concentration[1];
            this.MinConfidenceInterval[1]   = m.MinConfidenceInterval[1];
            this.MaxConfidenceInterval[1]   = m.MaxConfidenceInterval[1];
            this.MinConfidenceInterval68[1] = m.MinConfidenceInterval68[1];
            this.MaxConfidenceInterval68[1] = m.MaxConfidenceInterval68[1];
            //补充第五组
            this.RWMinConfidenceInterval[0]   = m.RWMaxConfidenceInterval[0];
            this.RWMaxConfidenceInterval[0]   = m.RWMaxConfidenceInterval[0];
            this.RWMinConfidenceInterval68[0] = m.RWMinConfidenceInterval68[0];
            this.RWMaxConfidenceInterval68[0] = m.RWMaxConfidenceInterval68[0];

            this.RWMinConfidenceInterval[1]   = m.RWMinConfidenceInterval[1];
            this.RWMaxConfidenceInterval[1]   = m.RWMaxConfidenceInterval[1];
            this.RWMinConfidenceInterval68[1] = m.RWMinConfidenceInterval68[1];
            this.RWMaxConfidenceInterval68[1] = m.RWMaxConfidenceInterval68[1];
            //第五组
            this.AcceptedEvents = m.AcceptedEvents;
            this.CNV            = m.CNV;
            this.CNVMin         = m.CNVMin;
            this.CNVMax         = m.CNVMax;
            this.CNVMin68       = m.CNVMin68;
            this.CNVMax68       = m.CNVMax68;
            //第6组
            this.Ratio      = m.Ratio;
            this.RatioMin   = m.RatioMin;
            this.RatioMax   = m.RatioMax;
            this.RatioMin68 = m.RatioMin68;
            this.RatioMax68 = m.RatioMax68;
            //第7组
            this.Ratio2      = m.Ratio2;
            this.Ratio2Min   = m.Ratio2Min;
            this.Ratio2Max   = m.Ratio2Max;
            this.Ratio2Min68 = m.Ratio2Min68;
            this.Ratio2Max68 = m.Ratio2Max68;

            //第8组
            this.Selected             = m.Selected;
            this.ReactionVolume       = m.ReactionVolume;
            this.DropletVolume        = m.DropletVolume;
            this.ReferenceCopyNumber  = m.ReferenceCopyNumber;
            this.TargetCopyNumber     = m.TargetCopyNumber;
            this.ReferenceAssayNumber = m.ReferenceAssayNumber;
            this.TargetAssayNumber    = m.TargetAssayNumber;
            //其余初始化

            this.ExperimentComments = m.ExperimentComments;//实验名称的注释
            this.Threshold[0]       = m.Threshold[0];
            this.Threshold[1]       = m.Threshold[1];
            this.ManualThreshold[0] = m.ManualThreshold[0];
            this.ManualThreshold[1] = m.ManualThreshold[1];
            this.Positives[0]       = m.Positives[0];
            this.Positives[1]       = m.Positives[1];
            this.Negatives[0]       = m.Negatives[0];
            this.Negatives[1]       = m.Negatives[1];

            this.TotalEvents = m.TotalEvents;

            this.PosPos  = m.PosPos;
            this.PosNeg  = m.PosNeg;
            this.NegNeg  = m.NegNeg;
            this.NegPos  = m.NegPos;
            this.Linkage = m.Linkage;
            /*=== 补充 ===*/
            this.SelectedPos = m.SelectedPos;
        }