d158c9c282
- usata (anche da AdapterForm) solo la copia in iobObj - verificate condizioni SIM x diminuire chiamate
52 lines
1.2 KiB
C#
52 lines
1.2 KiB
C#
using IOB_UT_NEXT;
|
|
using IOB_WIN_WPS.Iob;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using System.Windows.Markup;
|
|
|
|
namespace IOB_WIN_WPS
|
|
{
|
|
public class MainFormNext : IOB_WIN_FORM.MainForm
|
|
{
|
|
|
|
/// <summary>
|
|
/// Avvio MainForm
|
|
/// </summary>
|
|
/// <param name="args"></param>
|
|
public MainFormNext(string[] args) : base(args)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Apre la finestra child con conf
|
|
/// </summary>
|
|
protected override void openChild(string IOB)
|
|
{
|
|
if (IOB == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(IOB));
|
|
}
|
|
|
|
AdapterFormNext child = new AdapterFormNext(IOB);
|
|
child.MdiParent = this;
|
|
child.Text = IOB;
|
|
child.Show();
|
|
child.Shown += Child_Shown;
|
|
child.FormClosed += Child_FormClosed;
|
|
}
|
|
|
|
protected override void OnFormClosing(FormClosingEventArgs e)
|
|
{
|
|
if (this.ActiveMdiChild != null)
|
|
{
|
|
this.ActiveMdiChild.Close();
|
|
}
|
|
base.OnFormClosing(e);
|
|
}
|
|
}
|
|
}
|