35 lines
1.4 KiB
C#
35 lines
1.4 KiB
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace VEPROMS
|
|
{
|
|
public partial class dlgImpHowToHandleROs : Form
|
|
{
|
|
public string ImportedROFolder { get; set; }
|
|
public string WorkingDraftROFolder { get; set; }
|
|
private bool _CancelImport = true; // default to truen in case the dialog is closed with the red X in the upper right corner
|
|
public bool CancelImport => _CancelImport;
|
|
private bool _ConvertROsToText = false;
|
|
public bool ConvertROsToText => _ConvertROsToText;
|
|
public dlgImpHowToHandleROs() => InitializeComponent();
|
|
|
|
private void dlgImpHowToHandleROs_Load(object sender, EventArgs e) => rtbROPathInfo.Text = string.Format("The current Working Draft RO folder path is:\n\n {0}\n\nThe procedure you are trying to import is from a database that has the RO folder path:\n\n {1}\n\nSelect from the options below on how to handle the RO values when importing this procedure.", WorkingDraftROFolder, ImportedROFolder);
|
|
|
|
private void btnUseCurrentROs_Click(object sender, EventArgs e) => _ConvertROsToText = _CancelImport = false;
|
|
|
|
private void btnROsToText_Click(object sender, EventArgs e)
|
|
{
|
|
_CancelImport = false;
|
|
_ConvertROsToText = true;
|
|
}
|
|
|
|
private void btnCancel_Click(object sender, EventArgs e)
|
|
{
|
|
_CancelImport = true;
|
|
_ConvertROsToText = false;
|
|
}
|
|
|
|
private void dlgImpHowToHandleROs_Resize(object sender, EventArgs e) => rtbROPathInfo.Refresh();
|
|
}
|
|
}
|