protected void mfbDeadlines1_DeadlineUpdated(object sender, DeadlineEventArgs e) { if (e == null) { throw new ArgumentNullException(nameof(e)); } if (e.OriginalDeadline == null || e.NewDeadline == null) { return; } string szDiff = e.NewDeadline.DifferenceDescription(e.OriginalDeadline); if (!String.IsNullOrEmpty(szDiff) && e.NewDeadline.IsSharedAircraftDeadline) { MaintenanceLog ml = new MaintenanceLog() { AircraftID = e.NewDeadline.AircraftID, ChangeDate = DateTime.Now, User = Page.User.Identity.Name, Description = szDiff, Comment = string.Empty }; ml.FAddToLog(); UpdateMaintHistory(); } }
protected void mfbDeadlines1_DeadlineAdded(object sender, DeadlineEventArgs e) { if (e == null) { throw new ArgumentNullException(nameof(e)); } if (e.NewDeadline.IsSharedAircraftDeadline) { MaintenanceLog ml = new MaintenanceLog() { AircraftID = e.NewDeadline.AircraftID, ChangeDate = DateTime.Now, User = Page.User.Identity.Name, Description = String.Format(CultureInfo.CurrentCulture, Resources.Currency.DeadlineCreated, e.NewDeadline.DisplayName), Comment = string.Empty }; ml.FAddToLog(); UpdateMaintHistory(); } }
protected void mfbDeadlines1_DeadlineUpdated(object sender, DeadlineEventArgs e) { UpdateMaintHistory(); }