public CommonAdditionalInfo(long envelopeId, long dbReference, InfoTypeEnum type, CommonInfo ci) { EnvelopeId = envelopeId; Reference = dbReference; InfoType = type; Id = ci.Id; FileName = ci.FileName; Updated = ci.Updated; Note = ci.Note; FileMissing = ci.FileMissing; ProofStamp = ci.ProofStamp; UserId = ci.UserId; }
//NOTIFICATION private void ShowNotification(InfoTypeEnum type, string message) { notificatiaonBar.Visibility = Visibility.Visible; switch (type) { case InfoTypeEnum.Error: notificatiaonBar.Background = Brushes.LightPink; break; case InfoTypeEnum.Info: notificatiaonBar.Background = Brushes.LightGray; break; case InfoTypeEnum.Success: notificatiaonBar.Background = Brushes.LightGreen; break; } NotificationLabel.Content = message; }