예제 #1
0
        private void InitWorkTableUI()
        {
            //package setting
            int smpCount = Helper.ReadSampleCount();

            txtSampleCount.Text = smpCount.ToString();
            PipettingSettings pipettingSettings = Utility.LoadPipettingSettings();

            txtPlasmaCount.Text = pipettingSettings.dstPlasmaSlice.ToString();//pipettingSettings.dstPlasmaSlice.ToString();
            txtBuffyCount.Text  = pipettingSettings.dstbuffySlice.ToString();

            PackageInfo packageInfo = new PackageInfo(smpCount, runResult.plasmaTotalSlice, runResult.buffySlice);

            prgController = new ProgressController(txtThisStageUsed,
                                                   txtThisStageRemaining,
                                                   txtTotalUsed,
                                                   txtTotalRemaining,
                                                   prgThisStage,
                                                   prgTotal,
                                                   packageInfo);

            int wellsPerLabware = 16;
            int srcSmpGrids     = labwareSettings.sourceLabwareGrids;

            owenerDrawGrid.RowDefinitions[0].Height = new GridLength(this.ActualHeight * 0.8);
            workTableUI = new WorkTableUI(workTableGrid.ActualWidth, workTableGrid.ActualHeight, srcSmpGrids, wellsPerLabware, prgController);
            workTableGrid.Children.Add(workTableUI);

            stageInfo.curStage      = Stage.Measure;
            stageInfo.farthestStage = Stage.Measure;
            lstSteps.SelectedIndex  = 0;
        }
예제 #2
0
 public PipettingUI(double w, double h, int wellsPerLabware, ProgressController prgController)
     : base(w, h)
 {
     this.prgController   = prgController;
     this.wellsPerLabware = wellsPerLabware;
     runResult            = RunResultReader.Read();
     //smpInfos = RunResultReader.Read();
     pipettingSettings = Utility.LoadPipettingSettings();
     layoutInfo        = new LayoutInfo(pipettingSettings);
 }
예제 #3
0
 public WorkTableUI(double w, double h, int srcGrids, int wellsPerLabware, ProgressController prgController)
     : base(w, h)
 {
     width                = w;
     height               = h;
     this.prgController   = prgController;
     this.srcGrids        = srcGrids;
     this.wellsPerLabware = wellsPerLabware;
     frame                = 0;
     curStage             = Stage.Measure;
     smpCount             = Helper.ReadSampleCount();
     EVOMeasureInfo       = new EVOMeasureInfo(0, true);
 }
예제 #4
0
 public WorkTableUI(double w, double h, int srcGrids , int wellsPerLabware,ProgressController prgController)
     : base(w,h)
 {
     width = w;
     height = h;
     this.prgController = prgController;
     this.srcGrids = srcGrids;
     this.wellsPerLabware = wellsPerLabware;
     frame = 0;
     curStage = Stage.Measure;
     smpCount = Helper.ReadSampleCount();
     EVOMeasureInfo = new EVOMeasureInfo(0,true);
 }
예제 #5
0
 public PipettingUI(double w, double h, int wellsPerLabware,ProgressController prgController)
     : base(w, h)
 {
     this.prgController = prgController;
     this.wellsPerLabware = wellsPerLabware;
     runResult = RunResultReader.Read();
     //smpInfos = RunResultReader.Read();
     pipettingSettings = Utility.LoadPipettingSettings();
     layoutInfo = new LayoutInfo(pipettingSettings);
 }