diff --git a/VisualComponentsForm/VisualComponentsForm/PluginsConvention.cs b/VisualComponentsForm/VisualComponentsForm/PluginsConvention.cs index ef9e109..5c34e6f 100644 --- a/VisualComponentsForm/VisualComponentsForm/PluginsConvention.cs +++ b/VisualComponentsForm/VisualComponentsForm/PluginsConvention.cs @@ -64,16 +64,18 @@ namespace VisualComponentsForm } } - //запуск основной формы из лабы + //запуск формы с лабораторными из предыдущей лабы public Form GetForm(PluginsConventionElement element) { if (element == null) { - return new FormMain(_labWorkStorage, _discipline); + return new FormCreateLabWork(_labWorkStorage, _discipline); } else { - FormMain form = new FormMain(_labWorkStorage, _discipline); + FormCreateLabWork form = new FormCreateLabWork(_labWorkStorage, _discipline); + + form.Id = BitConverter.ToInt32(element.Id.ToByteArray(), 0); return form; }