VEPROMS_UI / remove BouncyCastle
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using Volian.Print.Library;
|
||||
@@ -13,10 +9,11 @@ namespace VEPROMS
|
||||
{
|
||||
public partial class dlgTransitionReport : Form
|
||||
{
|
||||
private FolderInfo folderInfo = null;
|
||||
private ProcedureInfo procedureInfo = null;
|
||||
private readonly FolderInfo folderInfo = null;
|
||||
private readonly ProcedureInfo procedureInfo = null;
|
||||
private PDFTransitionReport rpt;
|
||||
private List<DocVersionInfo> lstDocVersions;
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0044:Add readonly modifier", Justification = "Keeping Collections Not ReadOnly")]
|
||||
private List<DocVersionInfo> lstDocVersions;
|
||||
public dlgTransitionReport(FolderInfo fi)
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -26,7 +23,7 @@ namespace VEPROMS
|
||||
if (lstDocVersions.Count == 1)
|
||||
{
|
||||
pnlVersions.Visible = false;
|
||||
this.Height = this.Height - pnlVersions.Height;
|
||||
Height -= pnlVersions.Height;
|
||||
}
|
||||
}
|
||||
public dlgTransitionReport(ProcedureInfo pi)
|
||||
@@ -34,16 +31,17 @@ namespace VEPROMS
|
||||
InitializeComponent();
|
||||
procedureInfo = pi;
|
||||
pnlVersions.Visible = pnlProcs.Visible = false;
|
||||
this.Height = this.Height - pnlVersions.Height - pnlProcs.Height;
|
||||
Height = Height - pnlVersions.Height - pnlProcs.Height;
|
||||
}
|
||||
//private DocVersionInfo docVersionInfo;
|
||||
private void dlgTransitionReport_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (folderInfo != null)
|
||||
{
|
||||
rpt = new PDFTransitionReport(folderInfo, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\VEPROMS\TransitionReport.pdf");
|
||||
rpt.MyDocVersionList = lstDocVersions;
|
||||
if (lstDocVersions.Count == 1)
|
||||
rpt = new PDFTransitionReport(folderInfo, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\VEPROMS\TransitionReport.pdf")
|
||||
{
|
||||
MyDocVersionList = lstDocVersions
|
||||
};
|
||||
if (lstDocVersions.Count == 1)
|
||||
pbProcs.Maximum = lstDocVersions[0].Procedures.Count;
|
||||
else
|
||||
pbVersions.Maximum = lstDocVersions.Count;
|
||||
@@ -54,8 +52,8 @@ namespace VEPROMS
|
||||
if (VlnSettings.GetCommandFlag("PROFILE")) ProfileTimer.TurnOnTracking("Profile.txt");
|
||||
VEPROMS.CSLA.Library.Database.TrackDBUsage = VlnSettings.GetCommandFlag("DBTrack");
|
||||
ProfileTimer.Reset();
|
||||
int profileDepth = ProfileTimer.Push(">>>> transitionreport");
|
||||
rpt = new PDFTransitionReport(procedureInfo, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\VEPROMS\TransitionReport.pdf");
|
||||
_ = ProfileTimer.Push(">>>> transitionreport");
|
||||
rpt = new PDFTransitionReport(procedureInfo, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\VEPROMS\TransitionReport.pdf");
|
||||
pbTrans.Maximum = rpt.TransitionInfoCount;
|
||||
tmrReportStart.Enabled = true;
|
||||
}
|
||||
@@ -131,7 +129,7 @@ namespace VEPROMS
|
||||
{
|
||||
tmrReportFinish.Enabled = false;
|
||||
System.Diagnostics.Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\VEPROMS\TransitionReport.pdf");
|
||||
this.Close();
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user