Промежуточный.

This commit is contained in:
ElEgEv 2023-11-02 23:54:11 +04:00
parent 8c80db4df3
commit 52f2fd6b15

View File

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