All working! :) :) :)
This commit is contained in:
parent
105b576311
commit
85be301862
@ -151,24 +151,25 @@ namespace PluginsConventionLibraryNet60
|
||||
|
||||
private void UpdateElement()
|
||||
{
|
||||
var element = _plugins[_selectedPlugin].GetElement;
|
||||
|
||||
if (element == null)
|
||||
try
|
||||
{
|
||||
MessageBox.Show("Íå âûäåëåíà çàïèñü äëÿ îáíîâëåíèÿ", "Îøèáêà îáíîâëåíèÿ",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
var element = _plugins[_selectedPlugin].GetElement;
|
||||
|
||||
var form = _plugins[_selectedPlugin].GetForm(element);
|
||||
|
||||
if (form != null)
|
||||
{
|
||||
form.ShowDialog();
|
||||
|
||||
_plugins[_selectedPlugin].ReloadData();
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Íĺ âűäĺëĺíŕ çŕďčńü äë˙ îáíîâëĺíč˙", "Îřčáęŕ îáíîâëĺíč˙", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var form = _plugins[_selectedPlugin].GetForm(element);
|
||||
|
||||
if (form != null)
|
||||
{
|
||||
form.ShowDialog();
|
||||
|
||||
_plugins[_selectedPlugin].ReloadData();
|
||||
}
|
||||
}
|
||||
|
||||
private void DeleteElement()
|
||||
@ -180,20 +181,21 @@ namespace PluginsConventionLibraryNet60
|
||||
return;
|
||||
}
|
||||
|
||||
var element = _plugins[_selectedPlugin].GetElement;
|
||||
|
||||
if (element == null)
|
||||
try
|
||||
{
|
||||
MessageBox.Show("Íå âûäåëåíà çàïèñü äëÿ óäàëåíèÿ", "Îøèáêà",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
var element = _plugins[_selectedPlugin].GetElement;
|
||||
|
||||
if (_plugins[_selectedPlugin].DeleteElement(element))
|
||||
{
|
||||
_plugins[_selectedPlugin].ReloadData();
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show("Íĺ âűäĺëĺíŕ çŕďčńü äë˙ óäŕëĺíč˙", "Îřčáęŕ", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (_plugins[_selectedPlugin].DeleteElement(element))
|
||||
{
|
||||
_plugins[_selectedPlugin].ReloadData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void CreateSimpleDoc()
|
||||
@ -215,6 +217,7 @@ namespace PluginsConventionLibraryNet60
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void CreateTableDoc()
|
||||
{
|
||||
using var dialog = new SaveFileDialog { Filter = "pdf|*.pdf" };
|
||||
@ -234,6 +237,7 @@ namespace PluginsConventionLibraryNet60
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void CreateChartDoc()
|
||||
{
|
||||
using var dialog = new SaveFileDialog { Filter = "xlsx|*.xlsx" };
|
||||
|
@ -54,6 +54,7 @@ namespace VisualComponentsForm
|
||||
get
|
||||
{
|
||||
int Id = GetSelectedId();
|
||||
|
||||
byte[] bytes = new byte[16];
|
||||
|
||||
BitConverter.GetBytes(Id).CopyTo(bytes, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user