示例#1
0
            public static void AddSaturn5IssuesAndDamagesLog(RichTextBox rtbDeBriefInfo, IList <Saturn5Issue> issuesOrDamages)
            {
                rtbDeBriefInfo.AppendLog("Issues and damages:", _defaultColor);

                foreach (Saturn5Issue issue in issuesOrDamages)
                {
                    rtbDeBriefInfo.AppendLog($"{issue.Description}", _defaultColor);
                }

                rtbDeBriefInfo.AppendLog("  ", _defaultColor);
            }
示例#2
0
 public static void AddRetrievingUserDataCanceledLog(RichTextBox rtbDeBriefInfo, string username)
 {
     rtbDeBriefInfo.AppendLog($"Operation canceled. Read user data the from provided username: {username}.", _failureColor);
 }
示例#3
0
 public static void AddRetrievingSaturn5DataSucceedLog(RichTextBox rtbDeBriefInfo, Saturn5 saturn5)
 {
     rtbDeBriefInfo.AppendLog($"Serial Number: {saturn5.SerialNumber} Barcode: {saturn5.ShortId}", _headerColor);
 }
示例#4
0
 public static void AddRetrievingUserDataSucceedLog(RichTextBox rtbDeBriefInfo, User user)
 {
     rtbDeBriefInfo.AppendLog($"{user.Username} - {user.FirstName} {user.Surname} {user.Type}", _headerColor);
 }
示例#5
0
 public static void AddRetrievingUserDataFailedLog(RichTextBox rtbDeBriefInfo, string username)
 {
     rtbDeBriefInfo.AppendLog($"Fail to obtain user data from the provided username: {username}.", _failureColor);
 }
示例#6
0
 public static void ShowRetrievingSaturn5DataByShortId(RichTextBox rtbDeBriefInfo, string shortId)
 {
     rtbDeBriefInfo.Clear();
     rtbDeBriefInfo.AppendLog($"Retrieving data of the Saturn 5 from barcode {shortId}. Please wait...", _awaitDownloadColor);
 }
示例#7
0
 public static void AddRetrievingSaturn5DataByShortIdCanceledLog(RichTextBox rtbDeBriefInfo, string shortId)
 {
     rtbDeBriefInfo.Clear();
     rtbDeBriefInfo.AppendLog($"Retrieving data of the Saturn 5 from barcode {shortId} has been canceled.", _failureColor);
 }
示例#8
0
 public static void ShowRetrievingSaturn5DataBySerialNumber(RichTextBox rtbDeBriefInfo, string serialNumber)
 {
     rtbDeBriefInfo.Clear();
     rtbDeBriefInfo.AppendLog($"Retrieving data of the Saturn 5 from serial number {serialNumber}. Please wait...", _awaitDownloadColor);
 }
示例#9
0
 public static void AddRetrievingSaturn5DataBySerialNumberCanceledLog(RichTextBox rtbDeBriefInfo, string serialNumber)
 {
     rtbDeBriefInfo.Clear();
     rtbDeBriefInfo.AppendLog($"Retrieving data of the Saturn 5 from serial number {serialNumber} has been canceled.", _failureColor);
 }
示例#10
0
 public static void ShowRetrievingUserData(RichTextBox rtbDeBriefInfo, string username)
 {
     rtbDeBriefInfo.Clear();
     rtbDeBriefInfo.AppendLog($"Retrieving user {username} data. Please wait...", _awaitDownloadColor);
 }
示例#11
0
 public static void AppendLog(this RichTextBox richTextBox, params string[] values) => richTextBox.AppendLog(string.Join(" ", values));
示例#12
0
 public static void AppendLog(this RichTextBox richTextBox, params object[] values) => richTextBox.AppendLog(values.Select(obj => obj.ToString()).ToArray());
 public static void AddRetrievingSaturn5DataByShortIdFailedLog(RichTextBox rtbOptionsInfo, string shortId)
 {
     rtbOptionsInfo.Clear();
     rtbOptionsInfo.AppendLog($"Retrieving data of the Saturn 5 from barcode {shortId} failed.", _failureColor);
 }
 public static void AddRetrievingSaturn5DataBySerialNumberFailedLog(RichTextBox rtbOptionsfInfo, string serialNumber)
 {
     rtbOptionsfInfo.Clear();
     rtbOptionsfInfo.AppendLog($"Retrieving data of the Saturn 5 from serial number {serialNumber} failed.", _failureColor);
 }