B2019-043 Added checks for being in design mode during initialization of variables. C2019-015 removed (hid) the Volian Web help menu option and place the About option as the last help menu option.
This commit is contained in:
@@ -178,6 +178,7 @@ namespace VEPROMS
|
||||
MyParent = myParent;
|
||||
MyDocVersion=myDocVersion;
|
||||
InitializeComponent();
|
||||
displayRO.TabControl = tc; // B2019-043 this was being passed in as a parameter for DisplayRO which caused issues with the Visual Studio designer
|
||||
SetupFolder(MyDocVersion.FolderID);
|
||||
tc.MySessionInfo = MyParent.MySessionInfo;
|
||||
displaySearch1.TopFolderID = myDocVersion.FolderID;
|
||||
@@ -258,6 +259,7 @@ namespace VEPROMS
|
||||
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_LOCAL";
|
||||
}
|
||||
InitializeComponent();
|
||||
displayRO.TabControl = tc; // B2019-043 this was being passed in as a parameter for DisplayRO which caused issues with the Visual Studio designer
|
||||
bottomProgBar.ValueChanged += new EventHandler(bottomProgBar_ValueChanged);
|
||||
|
||||
// When creating an XY Plot, a System.Drawing.Graphics is needed and it requires a form. Use the main
|
||||
@@ -3007,8 +3009,10 @@ namespace VEPROMS
|
||||
/// <param name="e"></param>
|
||||
private void btnVlnWeb_Click(object sender, EventArgs e)
|
||||
{
|
||||
VlnWeb veWWW = new VlnWeb();
|
||||
veWWW.Show();
|
||||
//VlnWeb veWWW = new VlnWeb();
|
||||
//veWWW.Show();
|
||||
System.Diagnostics.Process sdp = System.Diagnostics.Process.Start("http://www.volian.com");
|
||||
//sdp.WaitForInputIdle();
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -4119,15 +4123,46 @@ namespace VEPROMS
|
||||
|
||||
private void btnSendErrorLog_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
frmSendErrorLog frm = new frmSendErrorLog(Properties.Settings.Default.OutlookEmail, Properties.Settings.Default["SMTPServer"].ToString(), Properties.Settings.Default["SMTPUser"].ToString(),ErrorLogFileName);
|
||||
if (frm.ShowDialog(this) == DialogResult.OK)
|
||||
try
|
||||
{
|
||||
Properties.Settings.Default.OutlookEmail = frm.OutlookEmail;
|
||||
Properties.Settings.Default.SMTPServer = frm.SMTPServer;
|
||||
Properties.Settings.Default.SMTPUser = frm.SMTPUser;
|
||||
Properties.Settings.Default.Save();
|
||||
MessageBox.Show("PROMS Error Log successfully sent to Volian support");
|
||||
frmSendErrorLog frm = new frmSendErrorLog(Properties.Settings.Default.OutlookEmail, Properties.Settings.Default["SMTPServer"].ToString(), Properties.Settings.Default["SMTPUser"].ToString(), ErrorLogFileName);
|
||||
if (frm.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
Properties.Settings.Default.OutlookEmail = frm.OutlookEmail;
|
||||
Properties.Settings.Default.SMTPServer = frm.SMTPServer;
|
||||
Properties.Settings.Default.SMTPUser = frm.SMTPUser;
|
||||
Properties.Settings.Default.Save();
|
||||
MessageBox.Show("PROMS Error Log successfully sent to Volian support");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message, "Send Error Log");
|
||||
_MyLog.Error("Send Error Log", ex);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnHelpManual_Click(object sender, EventArgs e)
|
||||
{
|
||||
string promsUserManual = System.Windows.Forms.Application.StartupPath + @"\PROMSManual.pdf";
|
||||
try
|
||||
{
|
||||
if (File.Exists(promsUserManual))
|
||||
{
|
||||
System.Diagnostics.Process sdp = System.Diagnostics.Process.Start(promsUserManual);
|
||||
sdp.WaitForInputIdle();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("The PROMS User Manual is not available for viewing.\nDetails in the error log.", "View User Manual");
|
||||
_MyLog.WarnFormat("PROMS User Manual not found: {0}", promsUserManual);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("Could not open the PROMS User Manual.\nDetails in the error log.", "View User Manual");
|
||||
string str = string.Format("Could not open {0}", promsUserManual);
|
||||
_MyLog.Error(str,ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user