public ChecksumInfo Clone() { ChecksumInfo clone = new ChecksumInfo(); clone.ApplicationPath = this.ApplicationPath; clone.BinPath = this.BinPath; return(clone); }
private void btnRun_Click(object sender, EventArgs e) { VisualME7Logger.Output.ChecksumInfo checksumInfo = new Output.ChecksumInfo(); checksumInfo.ApplicationPath = this.txtAppPath.Text; checksumInfo.BinPath = this.txtBinPath.Text; Output.ChecksumResult result = checksumInfo.Check(); this.txtOutput.Text = result.Output; MessageBox.Show( this, string.Format("Checksum validation {0}successful", result.Success ? "" : "not "), result.Success ? "Success" :"Error", MessageBoxButtons.OK, result.Success ? MessageBoxIcon.Information : MessageBoxIcon.Error); }