C2024-001-Update-Baseline-Auto-Testing #322
@ -3126,24 +3126,46 @@ namespace VEPROMS
|
|||||||
if (dvi != null)
|
if (dvi != null)
|
||||||
{
|
{
|
||||||
DlgPrintProcedure prnDlg = new DlgPrintProcedure(dvi, true);
|
DlgPrintProcedure prnDlg = new DlgPrintProcedure(dvi, true);
|
||||||
if (dvi.MultiUnitCount == 0) prnDlg.SelectedSlave = -1;
|
if (dvi.MultiUnitCount == 0)
|
||||||
|
{
|
||||||
|
prnDlg.SelectedSlave = -1;
|
||||||
|
}
|
||||||
|
else if (dvi.MultiUnitCount > 0)
|
||||||
|
{
|
||||||
|
string[] arguments = Environment.GetCommandLineArgs();
|
||||||
|
for (int i = 0; i < arguments.Length; i++)
|
||||||
|
{
|
||||||
|
if (arguments[i].Contains("/C="))
|
||||||
|
{
|
||||||
|
Console.WriteLine("In arguments loop");
|
||||||
|
//int num;
|
||||||
|
string[] childarg = arguments[i].Split('=');
|
||||||
|
if (int.TryParse(childarg[1], out int num))
|
||||||
|
{
|
||||||
|
prnDlg.SelectedSlave = num;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
prnDlg.AllowDateTimePrefixSuffix = false; //C2018-033 don't append any selected date/time pdf file prefix or suffix (defined in working draft properties)
|
prnDlg.AllowDateTimePrefixSuffix = false; //C2018-033 don't append any selected date/time pdf file prefix or suffix (defined in working draft properties)
|
||||||
prnDlg.ShowDialog(this); // RHM 20120925 - Center dialog over PROMS window
|
prnDlg.ShowDialog(this); // RHM 20120925 - Center dialog over PROMS window
|
||||||
//prnDlg.FormClosed += new FormClosedEventHandler(prnDlg_FormClosed);
|
//prnDlg.FormClosed += new FormClosedEventHandler(prnDlg_FormClosed);
|
||||||
//while (!_RunNext) Application.DoEvents();
|
//while (!_RunNext) Application.DoEvents();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
ranAuto = true;
|
ranAuto = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ranAuto)
|
if (ranAuto)
|
||||||
{
|
{
|
||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private FontFamily GetFamily(string name)
|
private FontFamily GetFamily(string name)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user