Пример #1
0
 protected override void Init(NameValueParameters nameValueParameters)
 {
     base.Init(nameValueParameters);
     // ReSharper disable LocalizableElement
     ProjectId    = nameValueParameters.GetLongValue("projectId");
     ExperimentId = nameValueParameters.GetLongValue("experimentId");
     FileId       = nameValueParameters.GetLongValue("fileId");
     RunStartTime = nameValueParameters.GetDateValue("runStartTime");
     // ReSharper restore LocalizableElement
 }
Пример #2
0
        // ReSharper restore VirtualMemberCallInConstructor

        protected virtual void Init(NameValueParameters nameValueParameters)
        {
            CentroidMs1        = nameValueParameters.GetBoolValue(Attr.centroid_ms1.ToString());
            CentroidMs2        = nameValueParameters.GetBoolValue(Attr.centroid_ms2.ToString());
            LockMassParameters = new LockMassParameters(
                nameValueParameters.GetDoubleValue(Attr.lockmass_pos.ToString()),
                nameValueParameters.GetDoubleValue(Attr.lockmass_neg.ToString()),
                nameValueParameters.GetDoubleValue(Attr.lockmass_tol.ToString()));
            ServerUrl    = nameValueParameters.GetValue(Attr.server.ToString());
            Username     = nameValueParameters.GetValue(Attr.username.ToString());
            EncodedPath  = nameValueParameters.GetValue(Attr.path.ToString());
            ModifiedTime = nameValueParameters.GetDateValue(Attr.modified_time.ToString());
        }