2023-01-22 18:35:57 +00:00
|
|
|
|
using UI_WinForms.Components;
|
|
|
|
|
|
|
|
|
|
namespace UI_WinForms;
|
2022-06-06 20:07:17 +00:00
|
|
|
|
|
|
|
|
|
public partial class Loader : Form
|
|
|
|
|
{
|
2023-01-22 18:35:57 +00:00
|
|
|
|
public LoaderStart.LoaderResult Result { get; private set; }
|
2022-07-09 13:07:34 +00:00
|
|
|
|
|
2022-06-06 20:07:17 +00:00
|
|
|
|
public Loader()
|
|
|
|
|
{
|
|
|
|
|
this.InitializeComponent();
|
|
|
|
|
}
|
2022-06-12 14:20:26 +00:00
|
|
|
|
|
2023-01-22 18:35:57 +00:00
|
|
|
|
private void loaderStart_LoadProject(object sender, LoaderStart.LoaderResult result)
|
2022-06-12 14:20:26 +00:00
|
|
|
|
{
|
2022-07-10 18:30:28 +00:00
|
|
|
|
if(this.DesignMode)
|
|
|
|
|
return;
|
|
|
|
|
|
2023-01-22 18:35:57 +00:00
|
|
|
|
this.Result = result;
|
2022-07-09 14:00:23 +00:00
|
|
|
|
this.DialogResult = DialogResult.OK;
|
2022-06-12 14:20:26 +00:00
|
|
|
|
this.Close();
|
|
|
|
|
}
|
2022-06-06 20:07:17 +00:00
|
|
|
|
}
|