42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using SteamWare;
|
|
using System;
|
|
using System.Reflection;
|
|
using System.Windows.Forms;
|
|
|
|
namespace TestBench
|
|
{
|
|
public partial class MainForm : Form
|
|
{
|
|
public MainForm()
|
|
{
|
|
InitializeComponent();
|
|
myInitComponent();
|
|
}
|
|
|
|
private void myInitComponent()
|
|
{
|
|
// imposto folders
|
|
txtSourceDir.Text = @"C:\TMP\";
|
|
txtDestDir.Text = @"L:\TMP\";
|
|
|
|
lblHwSwData.Text = SteamWare.HwSwInfo.man(Assembly.GetExecutingAssembly()).librariesVers;
|
|
|
|
lblRedis.Text = memLayer.ML.getRSV("MoonPro:SQL2016DEV:MoonPro:CurrentParameters:SIMUL_01");
|
|
}
|
|
|
|
private void BtnCopyAll_Click(object sender, EventArgs e)
|
|
{
|
|
// effettuo copia con steamware libs...
|
|
string sourceDir = txtSourceDir.Text.Trim();
|
|
string destDir = txtDestDir.Text.Trim();
|
|
if (sourceDir != "" && destDir != "")
|
|
{
|
|
lblOutMessage.Text = "inizio copia...";
|
|
lblOutMessage.Refresh();
|
|
fileMover.DirectoryCopy(sourceDir, destDir, chkRecursive.Checked);
|
|
lblOutMessage.Text = "Copia completata!";
|
|
}
|
|
}
|
|
}
|
|
}
|