Refactoring : TestBenchFramework --> TBF ver. 2.18.789
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
///
|
||||
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
||||
///
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Security.Cryptography;
|
||||
using System.Windows.Forms;
|
||||
using TBF.Resources;
|
||||
|
||||
namespace TBF.Forms
|
||||
{
|
||||
/// <summary>
|
||||
/// About dialog
|
||||
/// </summary>
|
||||
public partial class AboutDlg : Form
|
||||
{
|
||||
/// <summary>
|
||||
/// Contsructor
|
||||
/// </summary>
|
||||
public AboutDlg()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Text = Strings.About_Test_Bench_Framework;
|
||||
copyrightLabel.Text = string.Format(Strings.CopyrightStr, DateTime.Now.Year);
|
||||
versionLabel.Text = String.Format(Strings.VersionStr, Program.Version);
|
||||
buildDateLabel.Text = String.Format(Strings.BuildDateStr, Program.BuildDateTime.ToShortDateString());
|
||||
closeButton.Text = Strings.CloseBtnText;
|
||||
|
||||
byte[] sha1 = (new SHA1CryptoServiceProvider()).ComputeHash(Encoding.Default.GetBytes("nejaky text")); /// TODO: calculate SHA1 of real data
|
||||
StringBuilder sb = new StringBuilder();
|
||||
foreach (byte oneByte in sha1) { sb.Append(oneByte.ToString("X2")); }
|
||||
secureHashLabel.Text = string.Format("SHA1: {0}", sb);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user