示例#1
0
 public FormAddDetectorType(DetectorType detType)
 {
     InitializeComponent();
     DetType = detType;
 }
示例#2
0
文件: Session.cs 项目: corebob/crash
        public Session(string sessionPath, string name, string comment, float livetime, int iterations, Detector det, DetectorType detType)
        {
            Spectrums = new List<Spectrum>();
            Clear();            

            Name = name;
            Comment = comment;
            Livetime = livetime;
            Iterations = iterations;            
            Detector = det;
            DetectorType = detType;
            LoadGEFactor();

            if (!Directory.Exists(sessionPath + Path.DirectorySeparatorChar + Name))
                Directory.CreateDirectory(sessionPath + Path.DirectorySeparatorChar + Name);
        }