private void CopyListing() // todo redirect to overview / listing detail + flashMessage etc... { Listing newListing = _listingFactory.Create(Listing.Year, Listing.Month); newListing.Name = ListingName; newListing.Employer = Listing.Employer; newListing.Vacation = Listing.Vacation; newListing.Holiday = Listing.Holiday; newListing.SicknessHours = Listing.SicknessHours; newListing.HourlyWage = Listing.HourlyWage; newListing.VacationDays = Listing.VacationDays; newListing.Diets = Listing.Diets; newListing.PaidHolidays = Listing.PaidHolidays; newListing.Bonuses = Listing.Bonuses; newListing.Dollars = Listing.Dollars; newListing.Prepayment = Listing.Prepayment; newListing.Sickness = Listing.Sickness; TimeSetting ts = null; if (ChangeItemsTimes == true) { ts = WorkedTimeSettingViewModel.TimeSetting; } foreach (KeyValuePair <int, ListingItem> item in Listing.Items) { newListing.AddItem(item.Value.Day, item.Value.Locality, ts ?? item.Value.TimeSetting); } _listingFacade.StoreListing(newListing); EventAggregator.PublishOnUIThread(new ListingSuccessfullyCopiedMessage(newListing)); }
public string Replay(string hashcode) { bool checkGio = false; int idQuestion = int.Parse(hashcode); var currentPost = _postService.GetById(int.Parse(hashcode)); var userId = User.Identity.GetUserId(); //Kiem tra xem con thoi gian tra loi hay ko var sendQues = _haveSendQuesService.GetAll().Where(x => x.QuesID == idQuestion && x.UserID == userId).ToList().FirstOrDefault(); if (sendQues != null) { var timePost = sendQues.CreatedDate.Value.AddMinutes(TimeSetting.LimitMinuteForPost()).Ticks; var timeCurrent = DateTime.Now.Ticks; if (timePost < timeCurrent) { checkGio = true; } } // // currentPost.Post_Status = 1; // _postService.Update(currentPost); //_postService.Save(); // DateTime return(checkGio ? "Vui lòng trả lời" : "Link hết hạn"); }
public ZipEntryFactory(TimeSetting timeSetting) { fixedDateTime_ = DateTime.Now; getAttributes_ = -1; timeSetting_ = timeSetting; nameTransform_ = new ZipNameTransform(); }
public ZipEntryFactory(TimeSetting timeSetting) { _fixedDateTime = DateTime.Now; _getAttributes = -1; _timeSetting = timeSetting; _nameTransform = new ZipNameTransform(); }
private void ListedButton_Click(object sender, EventArgs e) { string ip = this.IPContent.Text.Trim(); string portS = this.ProtContent.Text.Trim(); if (string.IsNullOrWhiteSpace(ip) || string.IsNullOrWhiteSpace(portS)) { MessageBox.Show("请输入端口和Ip", "提示"); return; } else { SocketError socketError = Request.Connect(ip, int.Parse(portS)); if (socketError == SocketError.Success) { this.ListedButton.Enabled = false; this.GetMsgList.Items.Add("已连接到主机 " + ip + ":" + portS); Request.OnReceiveData += Request_OnReceiveData; Request.OnServerClosed += Request_OnServerClosed; Request.StartHeartbeat(); bool isSent = Request.Send(Overall.HeardPackage); Task.Factory.StartNew(() => { TimeSetting.Start(); }); } } }
public bool IsTimeEqual(TimeSetting time) { if (time.Start != StartTime) { return(false); } if (time.End != EndTime) { return(false); } if (time.LunchStart != LunchStart) { return(false); } if (time.LunchEnd != LunchEnd) { return(false); } if (time.OtherHours != OtherHours) { return(false); } return(true); }
public IHttpActionResult PutTimeSetting(int id, TimeSetting timeSetting) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (id != timeSetting.TimeSettingID) { return(BadRequest()); } db.Entry(timeSetting).State = EntityState.Modified; try { db.SaveChanges(); } catch (DbUpdateConcurrencyException) { if (!TimeSettingExists(id)) { return(NotFound()); } else { throw; } } return(StatusCode(HttpStatusCode.NoContent)); }
private void SetDefaultTimes() { TimeSetting setting; if (_defaultTimeSettings.HasNoTime) { // if default time has no time, we have to set some time otherwise there is no way of setting different time from default "HasNoTime" setting = new TimeSetting( new Time("06:00"), new Time("14:30"), new Time("10:30"), new Time("11:00"), new Time("00:00") ); } else { setting = _defaultTimeSettings; } _startTime = setting.Start.TotalSeconds; _endTime = setting.End.TotalSeconds; _lunchStart = setting.LunchStart.TotalSeconds; _lunchEnd = setting.LunchEnd.TotalSeconds; _otherHours = setting.OtherHours.TotalSeconds; NotifyTimePropertiesChanged(); UpdateCommandsCanExecute(); }
// GET: Requests/Edit/5 public ActionResult AllRequests(string name, State?state, string date1, string date2) { ViewBag.CurrentDate = GetPersianTime.GetPersainDateTime()[0]; //droplist options var Users = repository.GetallUsersNames(); SelectList list = new SelectList(Users); ViewBag.AllUsers = list; List <Request> requests = repository.GetRequestsByNameAndState(name, state); if (!string.IsNullOrEmpty(date1) && !string.IsNullOrEmpty(date2)) { DateTime firstTime = TimeSetting.SetTime(date1); DateTime secondTime = TimeSetting.SetTime(date2); requests = requests.Where(w => (w.RequestTime.Year >= firstTime.Year && w.RequestTime.Month >= firstTime.Month && w.RequestTime.Day >= firstTime.Day) && (w.RequestTime.Year <= secondTime.Year && w.RequestTime.Month <= secondTime.Month && w.RequestTime.Day <= secondTime.Day)).ToList(); } requests = requests.OrderByDescending(s => s.UserID).ThenBy(t => t.RequestTime).ToList(); var result = SetRequestView.SetRequest(requests); ViewBag.AllWorkingTime = AllWorkTimeCalculation.AllWorkTimeSum(result); return(View(result)); }
public ZipEntryFactory(TimeSetting timeSetting) { this.fixedDateTime_ = DateTime.Now; this.getAttributes_ = -1; this.timeSetting_ = timeSetting; this.nameTransform_ = new ZipNameTransform(); }
public ZipEntryFactory(DateTime time) { fixedDateTime_ = DateTime.Now; getAttributes_ = -1; timeSetting_ = TimeSetting.Fixed; FixedDateTime = time; nameTransform_ = new ZipNameTransform(); }
public ZipEntryFactory(DateTime time) { _fixedDateTime = DateTime.Now; _getAttributes = -1; _timeSetting = TimeSetting.Fixed; FixedDateTime = time; _nameTransform = new ZipNameTransform(); }
public ZipEntryFactory(DateTime time) { this.fixedDateTime_ = DateTime.Now; this.getAttributes_ = -1; this.timeSetting_ = TimeSetting.Fixed; this.FixedDateTime = time; this.nameTransform_ = new ZipNameTransform(); }
public Task <object> SetDateAndTimeSetting(TimeSetting settings) { var request = NewRequest("setTimeSettings"); request.Params = settings; var result = RunCmd <object>(request); return(result); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); Lighting l = target as Lighting; l.CopyValues(); EditorUtility.SetDirty(l); if(GUILayout.Button("CopyData")){ lightingValues = l.CurrentTime; } }
public IHttpActionResult GetTimeSetting(int id) { TimeSetting timeSetting = db.TimeSettings.Find(id); if (timeSetting == null) { return(NotFound()); } return(Ok(timeSetting)); }
public void SetTime(TimeSetting timeSetting) { _startTime = timeSetting.Start.TotalSeconds; _endTime = timeSetting.End.TotalSeconds; _lunchStart = timeSetting.LunchStart.TotalSeconds; _lunchEnd = timeSetting.LunchEnd.TotalSeconds; _otherHours = timeSetting.OtherHours.TotalSeconds; NotifyTimePropertiesChanged(); UpdateCommandsCanExecute(); ProcessEventOnTimeChanged(); }
public IHttpActionResult PostTimeSetting(TimeSetting timeSetting) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } db.TimeSettings.Add(timeSetting); db.SaveChanges(); return(CreatedAtRoute("DefaultApi", new { id = timeSetting.TimeSettingID }, timeSetting)); }
private void BtnSetting_Click(object sender, EventArgs e) { using (var context = new MyBookDB()) { var res = context.TimeSetting.ToList().OrderByDescending(t => t.DatetimeSetting).FirstOrDefault(); TimeSetting settings = new TimeSetting(); settings.DatetimeSetting = DateTime.Now; settings.Time = this.HowLongChangeWallPaper.Value; context.TimeSetting.Remove(res); context.TimeSetting.Add(settings); context.SaveChanges(); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); Lighting l = target as Lighting; l.CopyValues(); EditorUtility.SetDirty(l); if (GUILayout.Button("CopyData")) { lightingValues = l.CurrentTime; } }
public MemoryConfiguration() { // we allow 1 GB by default, or up to 75% of available memory on startup, if less than that is available LimitForProcessing = Size.Min(new Size(1024, SizeUnit.Megabytes), MemoryStatistics.AvailableMemory * 0.75); LowMemoryForLinuxDetection = Size.Min(new Size(16, SizeUnit.Megabytes), MemoryStatistics.AvailableMemory * 0.10); MemoryCacheLimit = GetDefaultMemoryCacheLimit(); MemoryCacheLimitCheckInterval = new TimeSetting((long)MemoryCache.Default.PollingInterval.TotalSeconds, TimeUnit.Seconds); AvailableMemoryForRaisingBatchSizeLimit = Size.Min(new Size(768, SizeUnit.Megabytes), MemoryStatistics.TotalPhysicalMemory / 2); }
public async Task <string> replayDirectly(string idques, string ketqua, string idmessenger) { // ChatfuelJson result = new ChatfuelJson(); MessJson messPron = new MessJson(); // bool checkGio = false; int idQuestion = int.Parse(idques); var currentPost = _postService.GetById(idQuestion); var userId = _service.listUserID().Where(x => x.Id_Messenger == idmessenger).FirstOrDefault().Id; //Kiem tra xem con thoi gian tra loi hay ko var sendQues = _haveSendQuesService.GetAll().Where(x => x.QuesID == idQuestion && x.UserID == userId).ToList().FirstOrDefault(); if (sendQues != null) { int tempMinute = TimeSetting.LimitMinuteForPost(); var timePost = sendQues.CreatedDate.Value.AddMinutes(tempMinute).Ticks; var timeCurrent = DateTime.Now.AddMinutes(-5).Ticks; if (timePost < timeCurrent) { checkGio = true; } else { currentPost.Post_Status = 10; Comment comment = new Comment(); comment.Corrected = false; comment.Content = ketqua; comment.Id_User = userId; comment.Id_Post = idQuestion; comment.DateComment = DateTime.Now.Ticks.ToString(); _commentOfPost.Add(comment); _commentOfPost.Save(); _postService.Update(currentPost); _postService.Save(); messPron.text = "Cám ơn bạn đã phản hồi"; result.messages.Add(messPron); await notifyForUserAboutQues(idQuestion); return(JsonConvert.SerializeObject(result)); } } // // currentPost.Post_Status = 1; // _postService.Update(currentPost); //_postService.Save(); // DateTime messPron.text = "Hết hạn trả lời, cảm ơn bạn đã quan tâm"; result.messages.Add(messPron); return(JsonConvert.SerializeObject(result)); }
public async Task SetDateAndTimeSetting() { var rpcClient = new Mock <IRpcClient>(); var settings = new TimeSetting(); rpcClient.Setup(c => c.ExecuteTaskAsync <object>(It.IsAny <IRpcRequest>())) .ReturnsAsync(new object()); var obj = new OmvSystemClient(rpcClient.Object); Assert.IsNotNull(obj); var result = await obj.SetDateAndTimeSetting(settings); Assert.IsNotNull(result); }
public IHttpActionResult DeleteTimeSetting(int id) { TimeSetting timeSetting = db.TimeSettings.Find(id); if (timeSetting == null) { return(NotFound()); } db.TimeSettings.Remove(timeSetting); db.SaveChanges(); return(Ok(timeSetting)); }
//Get tat ca cac post co thoi gian tao it hon hien tai 5' protected List <Post> getPost() { List <Post> listResult = new List <Post>(); List <Post> listPost = _postService.GetAll().Where(post => post.Post_Status == 0 && post.Option == 1).ToList(); foreach (var post in listPost) { var timePost = post.CreatedDate.Value.AddMinutes(TimeSetting.LimitMinuteForPost()).Ticks; var timeCurrent = DateTime.Now.Ticks; if (timePost < timeCurrent) { listResult.Add(post); } } return(listResult); }
public void SetTime() { using (var context = new MyBookDB()) { var timesettingd = context.TimeSetting.ToList().OrderByDescending(t => t.DatetimeSetting); if (timesettingd.Count() == 0) { TimeSetting settings = new TimeSetting(); settings.DatetimeSetting = DateTime.Now; settings.Time = this.HowLongChangeWallPaper.Value; context.TimeSetting.Add(settings); context.SaveChanges(); } else { var firsettime = timesettingd.FirstOrDefault(); this.HowLongChangeWallPaper.Value = firsettime.Time; } } }
public string busyNotReplay(string idques, string idmessenger) { ChatfuelJson result = new ChatfuelJson(); MessJson messPron = new MessJson(); // bool isHetGio = false; int idQuestion = int.Parse(idques); var currentPost = _postService.GetById(idQuestion); var userId = _service.listUserID().Where(x => x.Id_Messenger == idmessenger).FirstOrDefault().Id; //Kiem tra xem con thoi gian tra loi hay ko var sendQues = _haveSendQuesService.GetAll().Where(x => x.QuesID == idQuestion && x.UserID == userId).ToList().FirstOrDefault(); if (sendQues != null && currentPost.Post_Status != 10) { var timePost = sendQues.CreatedDate.Value.AddMinutes(TimeSetting.LimitMinuteForPost()).Ticks; var timeCurrent = DateTime.Now.Ticks; if (timePost < timeCurrent) { isHetGio = true; } } else { messPron.text = "Câu hỏi không tồn tại hoặc đã trả lời"; result.messages.Add(messPron); return(JsonConvert.SerializeObject(result)); } if (!isHetGio) { messPron.text = "Bạn đã bỏ qua câu hỏi số :" + idques; currentPost.CreatedDate = DateTime.Now.AddMinutes(-TimeSetting.LimitMinuteForPost()); _postService.Update(currentPost); _postService.Save(); result.messages.Add(messPron); return(JsonConvert.SerializeObject(result)); } messPron.text = "Hết giờ hoặc đã trả lời"; result.messages.Add(messPron); return(JsonConvert.SerializeObject(result)); }
public WorkedTimeSettingViewModel(TimeSetting defaultTimeSettings, TimeSetting timeSetting, int timeTickInMinutes) { _defaultTimeSettings = defaultTimeSettings; _lastSetTime = timeSetting; _startTime = timeSetting.Start.TotalSeconds; _endTime = timeSetting.End.TotalSeconds; _lunchStart = timeSetting.LunchStart.TotalSeconds; _lunchEnd = timeSetting.LunchEnd.TotalSeconds; _otherHours = timeSetting.OtherHours.TotalSeconds; _possibleTimeTicks = new List <int>(); _possibleTimeTicks.Add(5); _possibleTimeTicks.Add(10); _possibleTimeTicks.Add(15); _possibleTimeTicks.Add(30); SelectedTimeTickInMinutes = timeTickInMinutes; SetFlags(); }
public void InsertOrUpdate(TimeSetting TimeSetting) { if (TimeSetting.Id == default(int)) { // New entity context.TimeSettings.Add(TimeSetting); } else { var InDb = context.Programs.Find(TimeSetting.Id); // Activity does not exist in database and it's new one if (InDb == null) { context.TimeSettings.Add(TimeSetting); return; } // Activity already exist in database and modify it context.Entry(InDb).CurrentValues.SetValues(TimeSetting); context.Entry(InDb).State = EntityState.Modified; } }
public ActionResult Create([Bind(Include = "RequestID,Type,Time,Date")] Request request) { ViewBag.Message = string.Empty; //if (ModelState.IsValid) //{ if (string.IsNullOrEmpty(request.Time)) { request.Time = GetPersianTime.GetPersainDateTime()[1]; } if (string.IsNullOrEmpty(request.Date)) { request.Date = GetPersianTime.GetPersainDateTime()[0]; } request.RequestTime = TimeSetting.SetTime(request.Time, request.Date); //checks if someone insert two request with same type in a particular date. var Res = repository.GetRequestsByDate(request.RequestTime, User.Identity.GetUserId()); foreach (var index in Res) { if (index.Type == request.Type && index.State != State.rejected) { ViewBag.Message = "در یک تاریخ نمی توانید بیش از یک ورود یا خروج ثبت کنید!"; return(View(request)); } } request.State = State.Processing; repository.AddRequest(request, User.Identity.GetUserId()); repository.Save(); return(RedirectToAction("Index")); //} //return View(request); }
/// <summary> /// Initialise a new instance of <see cref="ZipEntryFactory"/> using the specified <see cref="DateTime"/> /// </summary> /// <param name="time">The time to set all <see cref="ZipEntry.DateTime"/> values to.</param> public ZipEntryFactory(DateTime time) { timeSetting_ = TimeSetting.Fixed; FixedDateTime = time; nameTransform_ = new ZipNameTransform(); }
/// <summary> /// Initialise a new instance of <see cref="FastZip"/> using the specified <see cref="TimeSetting"/> /// </summary> /// <param name="timeSetting">The <see cref="TimeSetting">time setting</see> to use when creating or extracting <see cref="ZipEntry">Zip entries</see>.</param> /// <remarks>Using <see cref="TimeSetting.LastAccessTime">TimeSetting.LastAccessTime</see><see cref="TimeSetting.LastAccessTimeUtc">[Utc]</see> when /// creating an archive will set the file time to the moment of reading. /// </remarks> public FastZip(TimeSetting timeSetting) { entryFactory_ = new ZipEntryFactory(timeSetting); restoreDateTimeOnExtract_ = true; }
void Update() { float worldYaw = 0; if(SceneManager.Instance != null){ worldYaw = SceneManager.Instance.OrientationYaw; } if(animatedRotation){ float yaw = currentTime.yaw; float pitch = currentTime.pitch; if(SceneManager.Instance != null){ yaw += SceneManager.Instance.OrientationYaw; } Quaternion rotation = Quaternion.AngleAxis(yaw, Vector3.up) * Quaternion.AngleAxis(pitch, Vector3.right); if(shadows != null){ shadows.SetFieldOfView(currentTime.shadowFieldOfView); shadows.SetNearFarClip(currentTime.shadowNearClip, currentTime.shadowFarClip); } if(shadows != null && (previousYaw != yaw || previousPitch != pitch) ){ previousYaw = yaw; previousPitch = pitch; shadows.Recalculate(); //Debug.Log("recalc"); } transform.rotation = rotation; if(targetPoint != null){ Vector3 targetPosition = targetPoint.position + Quaternion.AngleAxis(worldYaw, Vector3.up)*currentTime.offset - transform.forward * distance; if(targetPosition != previousTarget){ previousTarget = targetPosition; if(shadows!=null){ shadows.Recalculate(); } } transform.position = targetPosition; } } float zenithDistance = currentTime.zenithFogDistance; float horizonDistance = currentTime.horizonFogDistance; float directionalDistance = currentTime.directionalFogDistance; float directionalFogIntensity = currentTime.directionalFogIntensity; #if UNITY_EDITOR if(hideFogInEditor){ zenithDistance = 1000; horizonDistance = 1000; directionalDistance = 1000; directionalFogIntensity = 0; } if(!Application.isPlaying){ if(editorTimeOfDaySetting != null){ currentTime = editorTimeOfDaySetting.TimeSetting; } } #endif directionalDistance = Mathf.Clamp(directionalDistance, 1, 1000); if(StereoCamera.Instance != null && StereoCamera.Instance.FarClipPlane != currentTime.farClipPlane +3){ Debug.Log("update clip"); //StereoCamera.Instance.FarClipPlane = currentTime.farClipPlane+3; StereoCamera.Instance.EnvironmentScale = new Vector3(currentTime.farClipPlane, currentTime.farClipPlane, currentTime.farClipPlane); } //UpdateTime(); Vector3 lightDir = -transform.forward; Shader.SetGlobalVector(lightingNames[0], new Vector4(lightDir.x, lightDir.y, lightDir.z, currentTime.rimIntensity)); Shader.SetGlobalVector(lightingNames[1], new Vector4(currentTime.lightColor.r, currentTime.lightColor.g, currentTime.lightColor.b, currentTime.lightIntensity)); Shader.SetGlobalVector(lightingNames[2], new Vector4(currentTime.ambientColor.r, currentTime.ambientColor.g, currentTime.ambientColor.b, currentTime.ambientIntensity)) ; Shader.SetGlobalVector(lightingNames[3], new Vector4(currentTime.zenithColor.r, currentTime.zenithColor.g, currentTime.zenithColor.b, 1f/(0.1f+zenithDistance) ) ); Shader.SetGlobalVector(lightingNames[4], new Vector4(currentTime.horizonColor.r, currentTime.horizonColor.g, currentTime.horizonColor.b, 1f/(0.1f+horizonDistance) ) ); Shader.SetGlobalVector(lightingNames[5], new Vector4(currentTime.horizonFog.r, currentTime.horizonFog.g, currentTime.horizonFog.b, currentTime.horizonFogPoint / (0.1f+currentTime.horizonFogDistance) ) ); Shader.SetGlobalVector(lightingNames[6], new Vector4(currentTime.zenithFog.r, currentTime.zenithFog.g, currentTime.zenithFog.b, currentTime.zenithFogPoint / (0.1f+currentTime.zenithFogDistance) )); ///_FogData Shader.SetGlobalVector(lightingNames[7], new Vector4(1f/(0.1f+currentTime.horizonFogBlendDistance/ (0.1f+currentTime.horizonFogDistance) ), 1f/(0.1f+currentTime.zenithFogBlendDistance/ (0.1f+currentTime.zenithFogDistance) ), 1f/(0.1f+currentTime.directionalFogBlendDistance/ (0.1f+currentTime.directionalFogDistance) ), currentTime.directionalFogPoint / (0.1f+currentTime.directionalFogDistance) )); Shader.SetGlobalVector(lightingNames[8], currentTime.shadowColor); float realAngle = 0; if(SceneManager.Instance != null){ realAngle = Mathf.Deg2Rad*(SceneManager.Instance.OrientationYaw + currentTime.directionalFogAngle); } Shader.SetGlobalVector(lightingNames[9], new Vector4(directionalFogIntensity, 1f/(0.1f+directionalDistance) ,Mathf.Sin(realAngle),Mathf.Cos(realAngle) )); Shader.SetGlobalVector(lightingNames[10], new Vector4(currentTime.directionalColor.r, currentTime.directionalColor.g, currentTime.directionalColor.b, 0) ); Shader.SetGlobalVector(lightingNames[11], new Vector4(currentTime.directionalFog.r, currentTime.directionalFog.g, currentTime.directionalFog.b, 0) ); Vector3 position = Quaternion.AngleAxis(worldYaw, Vector3.up)*currentTime.pointLightPosition; //_PointLightPosition Shader.SetGlobalVector(lightingNames[12], new Vector4(position.x, position.y, position.z, currentTime.pointLightRadius) ); //_PointLightColor pointColor = pointColor + Time.deltaTime * (currentTime.pointLightColor - pointColor) + 3*Time.deltaTime*(Random.value-0.5f)*currentTime.pointLightColor; Shader.SetGlobalVector(lightingNames[13], new Vector4(pointColor.r, pointColor.g, pointColor.b, 0) ); if(StarRendering.Instance != null){ StarRendering.Instance.Color = new Color(currentTime.starIntensity,currentTime.starIntensity, currentTime.starIntensity, currentTime.starIntensity ); } //Shader.SetGlobalVector("_FogBackColor", FogBackColor); //Shader.SetGlobalVector("_FogParameters", new Vector4(fogDistance, groundFogDensity, backFogDensity, fogEnabled)); //Vector3 fogD = forwardDirection.normalized; //Shader.SetGlobalVector("_FogForwardDirection", new Vector4(fogD.x, fogD.y, fogD.z, 0)); }
public void SetTime(float time) { currentTime = timeOfDay.CalculateCurrentTime(time); }
public void SetTime(TimeSetting timeSetting) { //need to know what the rotational direction is? }
/// <summary> /// Initialise a new instance of <see cref="HfsEntryFactory"/> using the specified <see cref="TimeSetting"/> /// </summary> /// <param name="timeSetting">The <see cref="TimeSetting">time setting</see> to use when creating <see cref="HfsEntry">Hfs entries</see>.</param> public HfsEntryFactory(TimeSetting timeSetting) { timeSetting_ = timeSetting; nameTransform_ = new HfsNameTransform(); }
/// <summary> /// Initialise a new instance of <see cref="ZipEntryFactory"/> using the specified <see cref="TimeSetting"/> /// </summary> /// <param name="timeSetting">The <see cref="TimeSetting">time setting</see> to use when creating <see cref="ZipEntry">Zip entries</see>.</param> public ZipEntryFactory(TimeSetting timeSetting) { timeSetting_ = timeSetting; nameTransform_ = new ZipNameTransform(); }
/// <summary> /// Initialise a new instance of <see cref="ZipEntryFactory"/> using the specified <see cref="TimeSetting"/> /// </summary> /// <param name="timeSetting">The <see cref="TimeSetting">time setting</see> to use when creating <see cref="ZipEntry">Zip entries</see>.</param> public ZipEntryFactory(TimeSetting timeSetting) : this() { timeSetting_ = timeSetting; }
/// <summary> /// Initiailise a new instance of <see cref="ZipEntryFactory"/> using the specified <see cref="TimeSetting"/> /// </summary> /// <param name="timeSetting"></param> public ZipEntryFactory(TimeSetting timeSetting) { timeSetting_ = timeSetting; }
/// <summary> /// Initialise a new instance of <see cref="ZipEntryFactory"/> using the specified <see cref="DateTime"/> /// </summary> /// <param name="time">The time to set all <see cref="ZipEntry.DateTime"/> values to.</param> public ZipEntryFactory(DateTime time) { timeSetting_ = TimeSetting.Fixed; FixedDateTime = time; }