Exemplo n.º 1
0
        public static InstrumentPresetViewModel Create(InstrumentPresets preset)
        {
            InstrumentPresetViewModel model = null;
            switch (preset)
            {
                case InstrumentPresets.Tof:
                    model = new InstrumentPresetViewModel("TOF",
                        12,
                        .03,
                        50,
                        .5,
                        8);

                    break;
                case InstrumentPresets.Velos:
                    model = new InstrumentPresetViewModel("Velos",
                        6,
                        .03,
                        50,
                        .5,
                        8);
                    break;
                case InstrumentPresets.LtqOrbitrap:
                    model = new InstrumentPresetViewModel("LTQ Orbitrap",
                        13,
                        .03,
                        50,
                        .5,
                        8);
                    break;
            }

            return model;
        }
Exemplo n.º 2
0
 public ExperimentPresetViewModel(
     string name,
     double massRangeHigh,
     double massRangeLow,
     bool hasMsMs,
     InstrumentPresetViewModel preset)
 {
     MassRangeHigh = massRangeHigh;
     MassRangeLow = massRangeLow;
     Name = name;
     InstrumentPreset = preset;
     HasMsMs = hasMsMs;
 }
Exemplo n.º 3
0
        public static InstrumentPresetViewModel Create(InstrumentPresets preset)
        {
            InstrumentPresetViewModel model = null;

            switch (preset)
            {
            case InstrumentPresets.Tof:
                model = new InstrumentPresetViewModel("TOF",
                                                      12,
                                                      .03,
                                                      50,
                                                      .5,
                                                      8);

                break;

            case InstrumentPresets.Velos:
                model = new InstrumentPresetViewModel("Velos",
                                                      6,
                                                      .03,
                                                      50,
                                                      .5,
                                                      8);
                break;

            case InstrumentPresets.LtqOrbitrap:
                model = new InstrumentPresetViewModel("LTQ Orbitrap",
                                                      13,
                                                      .03,
                                                      50,
                                                      .5,
                                                      8);
                break;
            }

            return(model);
        }
Exemplo n.º 4
0
 private void UpdatePreset(InstrumentPresetViewModel preset)
 {
     MassResolution = preset.Mass;
     FragmentationTolerance = preset.FragmentWindowSize;
     NetTolerance = preset.NetTolerance;
     DriftTimeTolerance = preset.DriftTimeTolerance;
 }