24 lines
1.1 KiB
C#
24 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Windows.Forms;
|
|
|
|
namespace VEPROMS
|
|
{
|
|
public partial class dlgPickROFolder : Form
|
|
{
|
|
public string ImportedROFolder { get; set; }
|
|
public List<string> LocalROFolders { get; set; }
|
|
public string SelectedROFolder { get; set; }
|
|
public dlgPickROFolder() => InitializeComponent();
|
|
|
|
private void dlgPickROFolder_Load(object sender, EventArgs e)
|
|
{
|
|
lblImportRO.Text = string.Format("The procedure you are trying to import was exported from a database that had the following RO folder path:\r\n\r\n{0}\r\n\r\nSelect from the following RO Folders that exist in the database you are trying to import this procedure into so that the import process can continue", ImportedROFolder);
|
|
clbLocalROFolders.DataSource = LocalROFolders;
|
|
}
|
|
|
|
private void clbLocalROFolders_SelectedIndexChanged(object sender, EventArgs e) => btnOkay.Enabled = clbLocalROFolders.CheckedItems.Count > 0;
|
|
|
|
private void btnOkay_Click(object sender, EventArgs e) => SelectedROFolder = clbLocalROFolders.CheckedItems[0].ToString();
|
|
}
|
|
} |