46 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.ComponentModel;
 | 
						|
using System.Data;
 | 
						|
using System.Drawing;
 | 
						|
using System.Linq;
 | 
						|
using System.Text;
 | 
						|
using System.Threading.Tasks;
 | 
						|
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);
 | 
						|
            }
 | 
						|
 | 
						|
            this.Close();
 | 
						|
        }
 | 
						|
 | 
						|
    }
 | 
						|
}
 |