39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using System;
|
|
using System.Windows.Forms;
|
|
using VEPROMS.CSLA.Library;
|
|
using Volian.Base.Library;
|
|
|
|
namespace VEPROMS
|
|
{
|
|
public partial class dlgMSWordMessage : Form
|
|
{
|
|
//C2025-013 - Allow not continuously generate message that opening Summaries in MS Word
|
|
//typeofitem will be: Continuous Action/Time Critical Action
|
|
public dlgMSWordMessage(string typeofitem)
|
|
{
|
|
InitializeComponent();
|
|
Text = $"{typeofitem} Summary";
|
|
labelX1.Text = $"The {typeofitem} Summary will be opened in MS Word.\n\nYou can make modifications and copy it into a PROMS Word section.";
|
|
}
|
|
|
|
public bool ShouldDisplay()
|
|
{
|
|
UserSettings usersettings = new UserSettings(VlnSettings.UserID);
|
|
return usersettings.UserSetting_MSWord_Summary_Prompt;
|
|
}
|
|
|
|
private void btnTabs_Click(object sender, EventArgs e)
|
|
{
|
|
//if checkbox was checked in form, then update User Settings in database
|
|
if (cbRemember.Checked)
|
|
{
|
|
UserSettings usersettings = new UserSettings(VlnSettings.UserID);
|
|
usersettings.SetUserSetting_MSWord_Summary_Prompt(false);
|
|
}
|
|
|
|
Close();
|
|
}
|
|
|
|
}
|
|
}
|